Teechart HTML5, line color and thickness

280 views Asked by At

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.

1

There are 1 answers

1
Yeray On BEST ANSWER

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";