Next
Update
Prev
Default

You can display axis labels with the format defined in the JavaScript function. To use the user-defined function, you must set a JavaScript function name to the value of labelJsFunction attribute in the Axis or AxisRenderer element tags ( e.g. <CategoryAxis>, <ScrollableAxisRenderer> ).

This sample chart is to show how to define a JavaScript function to display the user-defined X-axis label.

...
<Line2DChart ...  >
'''
  <horizontalAxis>
    <CategoryAxis ... labelJsFunction="axisLabelFunc" ... > 
  </horizontalAxis>
...
</Line2DChart>
...


function axisLabelFunc(id, value)
{
  return  value + ", <font color='#0000ff'>2015</font>";
}

© 2017 KoolChart. All rights reserved.