Next
Update
Prev

The user-defined alert message can be popped when the user clicks on the item of the Plot series by using the itemClickFunction attribute in <MapChart>. Try to click on the item of the Plot series, then you will see that the user-defined alert message pops up.

...
<MapChart ... itemClickFunction="itemClickFunction">
  ...
</MapChart>

function itemClickFunction(seriesId, code, label, data) {
  alert("code:"+code+"\nlabel:"+label+"\naddress:"+data.address);
}

<MapChart>

itemClickJsFunction This property is to set the JavaScript function to be called when the user clicks on the item of the Plot series.

© 2017 KoolChart. All rights reserved.