StripLine

This section is regarding Methods and Properties available in StripLine Element.


Example :
        chart.axisX[0].stripLines[0].get(“startValue”);
        chart.axisX[0].stripLines[0].set(“labelPlacement”, “outside”);

Note
  • Chart should be rendered before you can access StripLine & its methods / properties.

StripLine Methods:

Method Description Example
get(String propertyName) Returns the specified property of stripLines chart.axisX[0].stripLine[0].get(“label”);
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of stripLines & optionally updates (default) the chart chart.axisX[0].stripLine[0].set(“labelAlign”, “near”);
remove([Boolean updateChart = true]) Removes a stripline from array of striplines chart.axisX[0].stripLine[0].remove();

Read-Only StripLines Properties:

Can be accessed via get method or dot notation.


Property Description Example
bounds Bounding rectangle of StripLine: {x1, x2, y1, y2} chart.axisX[0].stripLines[0].bounds / chart.axisX[0].stripLines[0].get(“bounds”)

Writable Properties in StripLine:

All stripLines options become available as properties after Chart Render. 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 StripLine Element for complete list of properties available.

Try it Yourself by Editing the Code below.

  Also See:    



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