Problem in generating a chart with Date as X axis

S

Sambathraj

Hello there,
I am trying to generate a chart with stock close values in Y axis and the
dates on X axis. I tried creating such type of chart in excel and part of
code for setting up time scale axes is below.
ActiveChart.Axes(xlCategory, xlPrimary).CategoryType = xlTimeScale.

I am not able to find a way to set time scale axis in C# above.

Can any one explain how to set/add timescale axis in c#?. I also want to
specify minimum start date, maximum end date for the chart.

Thanks in advance
Regards,
Sambathraj
 
A

Alvin Bruney [MVP - ASP.NET]

time scaling is on by default, you do not need to explicitly set it. If you
need to format the results you will need to use the numberformat properties
of the axis in question.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
 

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