[.net] DateTime Data Problems in Silverlight and C#

Started by
1 comment, last by Sharmila 12 years, 9 months ago
DateTime Data Problems in Silverlight and C#

Hello Forum.

I am using VISI Fire in Silverlight and C# to produce some data charts. One style of chart allows stacked data to be displayed in colums the xaml code I am using looks like this
xaml.png

The chart i am trying to build is based on a visi fire chart example. if you go to http://www.visifire.com/silverlight_wpf_charts_gauges_gallery.php and look at their stacked examples here http://www.visifire.com/silverlight_stacked_charts_gallery.php you can see the xaml example I am trying to emulate.
http://i67.photobucket.com/albums/h292/Athono/post_this.png

But
my chart comes out differently. mine has this odd overlaping date feature

badrepresentation.png

Now, I have carefully stepped through the code and as far as I can tell, I have the same date for each data set pair.
code-1.png

I have stepped through this code and I have made sure that with each value for i, the years and the months for each data pair are exactly the same. So why is my graph so messed up?

Is there something wrong with they way I am using the DateTime class?

new DateTime((Int32) Year_Id,(Int32) SMonth_Id, (Int32)1);

Advertisement
Based on the examples you linked to, I don't think you need to repeat the XValue property for both series.
This chart only has the x axis labels once

HTH
if you think programming is like sex, you probably haven't done much of either.-------------- - capn_midnight
Hi,

@ChaosEngine,
Please note that in Visifire chart with DateTime axis you have to set XValue in all series.

@athono,
Please follow the link below.
http://www.visifire....670

Regards,
Sharmila

This topic is closed to new replies.

Advertisement