Marks Style in JavaScript

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
vfc
Newbie
Newbie
Posts: 14
Joined: Thu Sep 02, 2021 12:00 am

Marks Style in JavaScript

Post by vfc » Tue Aug 30, 2022 9:06 am

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!

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Marks Style in JavaScript

Post by Yeray » Tue Aug 30, 2022 2:10 pm

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"
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply