Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > C# 4.0 aka C# 2010 General Discussion
|
C# 4.0 aka C# 2010 General Discussion Discussions about the C# 4.0, C# 4, Visual C# 2010 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 4.0 aka C# 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2011, 11:10 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default DateTime Data Problems in Silverlight and C#

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
http://i67.photobucket.com/albums/h292/Athono/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_...es_gallery.php and look at their stacked examples here http://www.visifire.com/silverlight_...ts_gallery.php you can see the xaml example I am trying to emulate.
http://i67.photobucket.com/albums/h2.../post_this.png
But my chart comes out differently. mine has this odd overlaping date feature
http://i67.photobucket.com/albums/h2...esentation.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.
http://i67.photobucket.com/albums/h2...ono/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);
 
Old July 20th, 2011, 03:50 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default

Well the Visi Fire plug in seems to be in charge of a lot. So if you have not worked with them, you might not have a good idea on how to fix problems. I got it working finally. I had to add some specification to the xaml.
Here is the fix:

Code:
<vc:Chart.AxesX>
    <vc:Axis ValueFormatString="MMM - yyyy" Padding="4" LineThickness="0" IntervalType="Months"  Interval="1"/>
</vc:Chart.AxesX>





Similar Threads
Thread Thread Starter Forum Replies Last Post
he conversion of a char data type to a datetime data type resulted in an out-of-range adamhw Classic ASP Basics 3 December 23rd, 2009 07:18 AM
Problems with Silverlight 1.0SDk ilegend .NET Framework 3.5 0 October 4th, 2008 07:02 AM
How Silverlight write data to XML file? tomalani Other Programming Languages 0 May 15th, 2008 07:31 AM
problems with Arraylist of DateTime silasla C# 2 April 26th, 2008 04:28 AM
selecting data in datetime intervals Phathu SQL Server 2005 1 August 29th, 2006 03:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.