Title

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


Examples :
    stockChart.title.get(“text”);
    stockChart.title.set(“fontColor”, “red”);

Note:
  • You can refer to Title Element for complete list of properties available.
  • StockChart should be rendered before you can access title & its methods / properties.

Title Methods:

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

Read-Only Title Properties:

Can be accessed via get method or dot notation.


Property Description Example
bounds Bounding rectangle of title: {x1, x2, y1, y2} stockChart.title.bounds / stockChart.title.get(“bounds”)

Writable Properties in Title:

After the StockChart is rendered, all title 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 Title Element for complete list of properties that are available.



Try it Yourself by Editing the Code below.




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