Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - Turning off scientific notation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Turning off scientific notation

 Post Reply Post Reply
Author
Message
belkaze View Drop Down
Groupie
Groupie
Avatar

Joined: 10 September 2010
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote belkaze Quote  Post ReplyReply Direct Link To This Post Topic: Turning off scientific notation
    Posted: 09 October 2011 at 1:58am
How does one turn off the scientific notation?


Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 10 October 2011 at 9:28am
Use the following:

For i = 0 to 1
    ChartControl.Content.Series(i).style.Label.Format.Category = xtpChartNumber
    ChartControl.Content.Series(i).style.Label.Format.UseThousandSeparator = True
    ChartControl.Content.Series(i).style.Label.Format.DecimalPlaces = 2
Next


xtpChartNumber gets rid of the scientific numbering, the other two do as they suggest.
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
belkaze View Drop Down
Groupie
Groupie
Avatar

Joined: 10 September 2010
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote belkaze Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2011 at 4:13am
Thanks, the display label on top of the bar is no longer scientific notation what about the values on the axis?
Back to Top
belkaze View Drop Down
Groupie
Groupie
Avatar

Joined: 10 September 2010
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote belkaze Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2011 at 4:38am
That's ok found it where to turn it off

Turning off the scientific notation off the AxisY Label Format
    ChartControl1.Content.Diagrams(0).AxisY.Label.Format.Category = xtpChartNumber
    ChartControl1.Content.Diagrams(0).AxisY.Label.Format.DecimalPlaces = 0

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.164 seconds.