Is there any way to format the mark's number, qty of decimals and locale (to get client locale in case of web app)?
Thank you in advance
Marks format
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Marks format
Hello,
yes, you can use the Series.ValueFormat property, e.g.
yes, you can use the Series.ValueFormat property, e.g.
Code: Select all
private void InitializeChart()
{
Bar bar = new Bar(tChart1.Chart);
bar.FillSampleValues();
bar.ValueFormat = "0.00";
}
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Marks format
Hi,
with you example i can set decimal qty, but what locale it takes?
Can I set the locale of the control or must I change the culture Info of the thread? (I need to set the client Culture Info in a webforms aplication to show numbers).
Thank you
with you example i can set decimal qty, but what locale it takes?
Can I set the locale of the control or must I change the culture Info of the thread? (I need to set the client Culture Info in a webforms aplication to show numbers).
Thank you
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Marks format
TeeChart is a standard .NET control, and as such I believe the only way is to change the locale of the thread. I don't think it is possible to change the locale of only a single .NET control.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Marks format
Hi,
Regardless the .NET controls in general, assuming that on the server I have Spanish and a web client connects with English locale (request.UserLanguages [0] ), if I change the locale of the thread where I am creating the chart, will it be shown with the numerical format of English?
Regards
Regardless the .NET controls in general, assuming that on the server I have Spanish and a web client connects with English locale (request.UserLanguages [0] ), if I change the locale of the thread where I am creating the chart, will it be shown with the numerical format of English?
Regards
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Marks format
Hello,
Yes, I believe it will.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |