Skip to main content
Home Forums Silverlight Programming Programming with .NET - General <charting Toolkit:LineSeries> Plotting Values from Start of the month.
2 replies. Latest Post by Mog Liang - MSFT on July 3, 2009.
(0)
senthilvelm
Member
15 points
23 Posts
06-29-2009 1:54 PM |
Hi all,
i have a charting requirement , where i am showing Value in the Y-axis and the Month Name in the X- Axis. am doing the binding as per the below code:
chartingToolkit:LineSeries x:Name="Valueseries" Title="Value" ItemsSource="{Binding}" IndependentValuePath="Monthname" DependentValuePath="Value"
what happens, even though i have the month START date from 1st of June, am able to plot the value of June only from the middle ...i mean the first value in the line series in x- axis is not plotted from the start of the month, but mid of the month... what property needs to be set to get values from Month start ?
i mean, from (0,0)..?
06-30-2009 12:17 PM |
Hi ,
Added to the above info , am trying to Plot a STEP Graph, where in there are 3 Line Series.
The main problem is whenever i have value for the Month June 30th as 10, i get the X axis plotted with value 10 on June 15th ...because of which there is a gap seen in the Graph from point ranging from 0 - 10 and all the other month values are moved towards the right ...
any clues ?
if any one can get me a sample code of Step Graph with 3 line series with values Starting from 0 ..pls let know
Mog Lian...
All-Star
15894 points
1,541 Posts
07-03-2009 4:05 AM |
Hi,
There are three kind of Axis in toolkit, CategoryAxis, DateTimeAxis and LinearAxis. when you bind string type property to IndependentValuePath, then it will choose CategoryAxis and the appearance, as you seen, in center of each linemark.
so, try binding int type or datetime type to IndependentValuePath may solve the problem