Subtitle

This section is regarding Methods and Properties available in the Subtitle element of StockChart.

Examples :
    stockChart.subtitles[0].get(“text”);
    stockChart.subtitles[0].set(“fontColor”, “blue”);
Note:
  • You can refer to Subtitle Element for complete list of properties available.
  • StockChart should be rendered before you can access subtitle & its methods / properties.


Subtitle Methods:

Method Description Example
get(String propertyName) Returns the specified property of subtitle stockChart.subtitles[0].get(“text”);
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of subtitle and optionally (default) updates the StockChart stockChart.subtitles[0].set(“text”, “Modified Subtitle”);
remove() Removes subtitle of the StockChart stockChart.subtitles.remove();

Read-Only Subtitle Properties:

Can be accessed via get method or dot notation.


Property Description Example
bounds Bounding rectangle of subtitle: {x1, y1, x2, y2} stockChart.subtitles[0].get(“bounds”)

Writable Properties in Subtitle:

After the StockChart is rendered, all subtitle options become available as properties. You can access them either via get method or dot notation. But you can change/set those values only via set method.

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

Try Editing The Code


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