ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Using setMultiFormat for Spanish months
Posted by Mindee on Jun-02-2020 00:27
Attachments:
I have a graph in Spanish and want the x-axis to display the MM/YY in Spanish. Currently using:
c.xAxis().setMultiFormat(Chart.StartOfYearFilter(), "{value|mmm<*br*>yyyy}", Chart.AllPassFilter(), "{value|mmm}", 1, true);

Is there an option to use different language for the month?

Thank you for your help!
Mindee
SSH_englishDates.JPG

  Re: Using setMultiFormat for Spanish months
Posted by Peter Kwan on Jun-02-2020 11:10
Hi Mindee,

Yes. You can use BaseChart.setMonthNames to configure the month names to use:

https://www.advsofteng.com/doc/cdnet.htm#BaseChart.setMonthNames.htm

It is like:

string[] names = {"AAA", "BBB", "CCC", .....};
c.setMonthNames(names);

Hope this can help.

Regards
Peter Kwan