Scatter Chart Axis as text C#

  • Thread starter Pablo Villalobos via OfficeKB.com
  • Start date
P

Pablo Villalobos via OfficeKB.com

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
 
T

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top