This section is regarding Methods and Properties available in the Subtitle element of StockChart.
Examples :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(); |
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”) |
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.