get(String propertyName)

Returns the specified property of StockChart.

Parameters:
        propertyName: Name of the property

Example: stockChart.get(“exportEnabled”);
Note:
  • You can refer to StockChart Element for complete list of properties available.
  • StockChart should be rendered before you can use get method.
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 exportEnabled: true,
 .
 .
});
stockChart render();

console.log(stockChart.get("exportEnabled"));

Properties accessible via get method

Please refer to StockChart Element for complete list of properties that can be accessed via get method.

Try Editing The Code


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