Reply
Old July 20th, 2011 Top | #1
 
Complete's Avatar
OSNN Addict
Joined: August 2005
Posts: 94
Reputation: 10
Power: 83

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

The chart i am trying to build is based on a visi fire chart example. if you go to Silverlight, WPF, ASP.Net Charts & Gauges Gallery and look at their stacked examples here Silverlight Stacked Charts Gallery you can see the xaml example I am trying to emulate.
But my chart comes out differently. mine has this odd overlaping date feature

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.

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);
Complete is offline   Reply With Quote
Old July 20th, 2011 Top | #2
 
Complete's Avatar
OSNN Addict
Joined: August 2005
Posts: 94
Reputation: 10
Power: 83

Default Re: DateTime Data Problems in Silverlight and C#

I fixed this.

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

</vc:Chart.AxesX>
Complete is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Silverlight Border FAIL !! Complete Web Design & Coding 0 July 6th, 2011 12:20am
Flash or Silverlight? Johnny Windows Applications 5 August 18th, 2010 4:42pm
SilverLight Mac OS X crashes X-Istence Macintosh 10 January 12th, 2009 1:10am
MS Silverlight? ming Green Room 1 February 20th, 2008 11:58am
Microsoft Silverlight 1.0 RC1 Now Available madmatt Submitted News 1 July 28th, 2007 5:24pm