Page 1 of 1

Marks Style in JavaScript

Posted: Tue Aug 30, 2022 9:06 am
by 20091735
Can I know how to modify the marks style of series in JavaScript?
In .NET (C#), we can set it throught "cht[0].Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value;". How to do the same in JavaScript?

Thanks!

Re: Marks Style in JavaScript

Posted: Tue Aug 30, 2022 2:10 pm
by yeray
Hello,

You can set marks.style to "value", "percent", "percentlabel", "valuelabel", "auto", "label", "index", "labelvalue", "labelpercent".
Find an example here.

Code: Select all

let bar1 = Chart1.addSeries(new Tee.Bar());
bar1.addRandom(5)
bar1.data.labels = ['apples', 'bananas', 'kiwis', 'oranges', 'mangos']
bar1.marks.style = 'label' //"value", "percent", "percentlabel", "valuelabel", "auto", "label", "index", "labelvalue", "labelpercent"