Home Forums Chart Support adding data fields to chart at initialization time Reply To: adding data fields to chart at initialization time

#35739

@pworthing,

The get and set methods of chart are used to access and/or change the available chart properties present in the library once the chart is rendered. However, methods don’t support reading custom properties passed in the chart-options. You can access them using chart.options as shown in the code-snippet below.

chart.options.myField1;
chart.options.myField2;

Kindly take a look at this updated JSFiddle for an example on reading custom properties using chart.options.


Adithya Menon
Team CanvasJS