Sign in to follow this  

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

This topic is 2342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
[IMG]http://i67.photobucket.com/albums/h292/Athono/xaml.png[/IMG]

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

But[/url] my chart comes out differently. mine has this odd overlaping date feature

[IMG]http://i67.photobucket.com/albums/h292/Athono/badrepresentation.png[/IMG]

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.
[IMG]http://i67.photobucket.com/albums/h292/Athono/code-1.png[/IMG]

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);

Share this post


Link to post
Share on other sites
Based on the examples you linked to, I don't think you need to repeat the XValue property for both series.
[url="http://www.visifire.com/popup.php?url=StackedColumn2D1.xml?version=11&width=600&height=375"]This chart[/url] only has [url="http://www.visifire.com/view.php?type=xml&file=product/StackedColumn2D1.xml?version=11"]the x axis labels once[/url]

HTH

Share this post


Link to post
Share on other sites
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.
[url="http://www.visifire.com/forums/index.php?showtopic=2777&st=0&gopid=12670&#entry12670"]http://www.visifire....670[/url]

Regards,
Sharmila

Share this post


Link to post
Share on other sites

This topic is 2342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this