Print Page | Close Window

Turning off scientific notation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19049
Printed Date: 16 November 2024 at 4:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Turning off scientific notation
Posted By: belkaze
Subject: Turning off scientific notation
Date Posted: 09 October 2011 at 1:58am
How does one turn off the scientific notation?





Replies:
Posted By: Xander75
Date 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)


Posted By: belkaze
Date 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?


Posted By: belkaze
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net