silverlight - Silver charts axis intervals -


i have number of silverlight charts bound datasets.

they working correctly values on axis display years showing, rather full years, points in between example: 2007, 2007.2,2007.4 etc etc.

how can make show full years?

below screen shot further explain visually mean.

alt text

here code use bind chart data:

foreach (var myvariable in userselections.thedataset.er_variables)                 {                     var newseries = new lineseries                                         {                                             itemssource =                                                 userselections.getdatarowsbyvariableandlocation(                                                     userselections.getidforlocation(userselections.locations[0]),                                                     myvariable.variable_id),                                             independentvaluebinding = new binding("year"),                                             dependentvaluebinding = new binding("value"),                                             title = myvariable.name,                                             isselectionenabled = true                                          };                     mainchart.series.add(newseries);                 } 

in chart definition need following:

<toolkit:chart title="chart title" verticalalignment="top">     <toolkit:chart.axes>         <toolkit:datetimeaxis intervaltype="years" interval="1"/>     </toolkit:chart.axes> 

i think should trick (assuming date datetime variable).

the key need set interval.

(thanks anthonywjones pointing out)


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -