Next
Update
Prev

The user-defined Tooltips (Datatips) can be set by using the dataTipJsFunction attribute in <MapChart>. Mouse over the map of this sample chart, then you will find that the user-defined Datatips pops up.

...
<MapChart ... dataTipJsFunction="dataTipFunction">
  ...
</MapChart>

function dataTipFunction(seriesId, code, label, data) {
  if (code == "100" || data.sales < 30)
    return label+": Poor";
  else if (code == "1500" || data.sales < 50)
    return label+": Fair";
  else if (data.sales < 90)
    return label+": Good";
  else
    return label+": Excellent";
}

© 2017 KoolChart. All rights reserved.