0

I need to align the series lines to the right of the chart. It is always centered. How I can do it?

kmp
  • 10,535
  • 11
  • 75
  • 125
mamfredym
  • 28
  • 1
  • 7
  • I have been looking for a property that help me with. But I just found properties for label aligment but not for chart lines alignment. I need something like tje justified property of the CategoryAxis that help me to align to the right... – mamfredym Dec 07 '12 at 15:33

1 Answers1

0

The Q3 version of the Chart supports a justified setting for each axis. It stretches line and area series to the very end of the axis.

categoryAxis: {
  justified: true
}

See a live demo here: JS Bin

I hope I understood your question correctly.

Tsvetomir Tsonev
  • 105,726
  • 5
  • 27
  • 34
  • Thank you for your Quick Response, I like justified too, but I would like to align to the right. So When I set 2 values in the datasource I would like it to show 2 points of the line chart but aligned to the right. I did it in silverlight using the live data sample of the telerik charts. When I start adding point to the serie It starts displaying on the chart from the right to the left. and it is not justified. Can I do the same thing with KendoUi charts? – mamfredym Dec 07 '12 at 15:07
  • The demo you refer to uses a date axis and the alignment is done by setting the axis range. I suppose you can do the same with the date axis of the Kendo Chart. See http://demos.kendoui.com/dataviz/line-charts/date-axis.html and http://docs.kendoui.com/api/dataviz/chart#categoryaxismin-object – Tsvetomir Tsonev Dec 07 '12 at 15:41