Skip to main content

Microsoft Silverlight

Answered Question <charting Toolkit:LineSeries> Plotting Values from Start of the month.RSS Feed

(0)

senthilvelm
senthilvelm

Member

Member

15 points

23 Posts

<charting Toolkit:LineSeries> Plotting Values from Start of the month.

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)..?

 

Thanks
Senthil
http://dotnetcrunch.blogspot.com

senthilvelm
senthilvelm

Member

Member

15 points

23 Posts

Re: <charting Toolkit:LineSeries> Plotting Values from Start of the month.

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 

 

 

Thanks
Senthil
http://dotnetcrunch.blogspot.com

Mog Liang - MSFT
Mog Lian...

All-Star

All-Star

15894 points

1,541 Posts

Answered Question

Re: <charting Toolkit:LineSeries> Plotting Values from Start of the month.

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

Mog Liang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities