Search code examples
teechart

javascript teechart area series top border


enter image description here

Hi guys,

I need to draw area series border only on the top. I attached what I have today.

Thanks in advance.


Solution

  • The easiest would be to hide the Area pen:

    areaSeries.format.stroke.fill = 'rgba(0, 0, 0, 0)';
    

    and use a Line series to draw the top. Ie:

    var s = new Tee.Line();
    Chart1.addSeries(s);
    s.data = areaSeries.data;
    s.format.stroke.size = 3;