DateTime Data Problems in Silverlight and C#

Complete

OSNN Addict
Joined
25 Aug 2005
Messages
94
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 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.
[ame]http://i67.photobucket.com/albums/h292/Athono/post_this.png[/ame]
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);
 

Complete

OSNN Addict
Joined
25 Aug 2005
Messages
94
I fixed this.

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

</vc:Chart.AxesX>
 

Members online

No members online now.

Latest profile posts

Xie Electronic Punk Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. 🙁

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk Sazar Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz Electronic Punk Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk Sazar Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,017
Messages
673,508
Members
5,636
Latest member
GLOCKTOR642
Back