ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Scatter Chart Axis as text C# (https://www.excelbanter.com/charts-charting-excel/18300-scatter-chart-axis-text-c.html)

Pablo Villalobos via OfficeKB.com

Scatter Chart Axis as text C#
 
Hi, I'm creating a scatter chart in C#, and I need its X axis values to be
dates or strings that represent dates... the data source where I get the
data from is a DataTable with 2 columns... X,Y, which X are dates and Y
floats, can Anyone help me display the dates in the X axis...?

Pablo

--
Message posted via http://www.officekb.com

Tushar Mehta

A XY Scatter chart can have dates on the x-axis without any additional
work. Just make sure you have the dates set up as XL understands them
(which I believe is how all MS Office apps understand them). The whole
number part is the number of days since 1/1/1900 (or 1/1/1904 if using
that date numbering system) and the fraction part represents the time
of day (0.0 is midnight; 0.5 is midday; and 0 with an increment of the
whole number part, i.e., 1.0 being the next midnight).

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi, I'm creating a scatter chart in C#, and I need its X axis values to be
dates or strings that represent dates... the data source where I get the
data from is a DataTable with 2 columns... X,Y, which X are dates and Y
floats, can Anyone help me display the dates in the X axis...?

Pablo




All times are GMT +1. The time now is 01:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com