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> ).

...
<Line2DChart ...  >
'''
  <horizontalAxis>
    <CategoryLinearAxis ... id="hAxis" ... > 
  </horizontalAxis>
...
  <horizontalAxisRenderers>
    <ScrollableAxisRenderer ... id="{hAxis}" ... labelJsFunction="axisLabelFunc" > 
  </horizontalAxisRenderers>
</Line2DChart>
...


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

© 2017 KoolChart. All rights reserved.