Next
Update
Prev

The different patterns can be used in the regions of the map using the localFillJsFunction attribute. This example map chart demonstrates how to set patterens in the regions using the JavaScript function which returns a pattern based on the region code.

...
  <MapSeries ... localFillJsFunction="colorFunction" ... >
    ...
  </MapSeries>
...

function colorFunction(code, label, data) {
  var regionCode = code.toString().substring(0, 1);
	
  if (regionCode == "1")
    return "etc_01";
  else if (regionCode == "2")
    return "etc_02";
  else if (regionCode == "3")
    return "horizontal_curve";
  else if (regionCode == "4")
    return "etc_03";
  else if (regionCode == "5")
    return "etc_04";
  else if (regionCode == "6")
    return "etc_05";
  else if (regionCode == "7")
    return "etc_06";
  else
    return "etc_07";
}

© 2017 KoolChart. All rights reserved.