I am having a problem when Adding a series.
When I pass the datetime value for the datetime parameter, it is being converted to a double value.
sample codes:
webChart.Chart.Axes.Bottom.Increment = Steema.TeeChart.Utils.DateTimeStep[Convert.ToInt32(Steema.TeeChart.DateTimeSteps.ThirtyMinutes)];
webChart.Chart.Axes.Bottom.Labels.DateTimeFormat = "HH.mm";
priceSeries.Add(Convert.ToDateTime(interval1), h);
-----------------
values of series xValues would be 36892.1875
Thanks
Series DateTime X Value is being converted to double
Re: Series DateTime X Value is being converted to double
Hi iEnergy,
You could try the following to tell TeeChart that your series' XValues are DateTimes:
You could try the following to tell TeeChart that your series' XValues are DateTimes:
Code: Select all
priceSeries.XValues.DateTime = true;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Series DateTime X Value is being converted to double
I already set the DateTime property but it still displays the same results.
Please see the attached vs 2008 project.
To use the sample page.
1. Select Region QLD from Dropdown
2. Click Display Chart.
3. I placed a breakpoint in line 164 to check the added datetime values
Thanks
Please see the attached vs 2008 project.
To use the sample page.
1. Select Region QLD from Dropdown
2. Click Display Chart.
3. I placed a breakpoint in line 164 to check the added datetime values
Thanks
- Attachments
-
- TeaChartDemo.zip
- Project for Visual Studio 2008
- (70.99 KiB) Downloaded 281 times
Re: Series DateTime X Value is being converted to double
Hello iEnergy,
I couldn't reproduce your project. Please, you could send a simple example, without Syncfusion component, because we can run "as-is" to reproduce it here?
Thanks,
I couldn't reproduce your project. Please, you could send a simple example, without Syncfusion component, because we can run "as-is" to reproduce it here?
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Series DateTime X Value is being converted to double
Hi. I attached updated project without the other libaries that i used. Please refer to my previous post on how to use the project. Thanks
- Attachments
-
- TeaChartDemo.zip
- (174.68 KiB) Downloaded 308 times
Re: Series DateTime X Value is being converted to double
Hello iEnergy,
I have tested your project, and here it works correctly using last version 4, Please see next image:
On the other hand, I have changed your code, because you could see all DateTime. Please, add in your code next lines and check if it works correctly for you.
Using previous lines we get next results:
If still, you couldn't solve the problem or code doesn’t work as you want, could you say us exactly, what is your problem, because we can try to help you?
Also, could you say what version of TeeChart are you using?
Thanks,
I have tested your project, and here it works correctly using last version 4, Please see next image:
On the other hand, I have changed your code, because you could see all DateTime. Please, add in your code next lines and check if it works correctly for you.
Code: Select all
webChart.Chart.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yyyy HH.mm";
webChart.Chart.Axes.Bottom.Increment = Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.ThirtyMinutes);
If still, you couldn't solve the problem or code doesn’t work as you want, could you say us exactly, what is your problem, because we can try to help you?
Also, could you say what version of TeeChart are you using?
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |