Next
Update
Prev

The user-defined alert message can be popped up when the user clicks on the map by using the mapChangeJsFunction attribute in <MapChart>. Try to click on the map of this sample chart, then you will see that the user-defined alert message pops up.

...
<MapChart ... mapChangeJsFunction="clickFunction">
  ...
</MapChart>

function clickFunction(code, label, data) {
  alert("code: "+code+"\nlabel: "+label+"\ndata.sales: $"+data.sales + "M");
}

<MapChart>

mapChangeJsFunction This property is to set the JavaScript function to be called when the user clicks on the region.

© 2017 KoolChart. All rights reserved.