Search code examples
javascripthtmlteechart

Teechart HTML5, line color and thickness


How do you change the line color and thickness of a series in Teechart HTML5.

I have been looking through the examples, but i can't find anything describing that.


Solution

  • Having a Line series:

    • To modify the line thickness, change the series format.stroke.size property. Ie:

      Chart1.series.items[0].format.stroke.size=2;
      
    • To modify the series color, change the series format.stroke.fill property. Ie:

      Chart1.series.items[0].format.stroke.fill="red";