get(String propertyName)

Returns the specified property of Axis.


Parameters:
        propertyName: Name of the property

Example:
        chart.axisX[0].get(“title”);

Note:
  • Chart should be rendered before you can use this method.

var  chart =  new  CanvasJS("container",
{
    .
    .
    axisX: {
        title: "axisX Title"
    },
    .
    .
});
chart.render();

console.log(chart.axisX[0].get("title"));

Properties accessible via get method

Please refer to Axis Element for complete list of properties available.


Try it Yourself by Editing the Code below.

  Also See:    



If you have any questions, please feel free to ask in our forums.Ask Question