This is a migrated thread and some comments may be shown as answers.

Display X-Axis Info on Top & Bottom of the Chart

2 Answers 273 Views
Charts
This is a migrated thread and some comments may be shown as answers.
STATE OF WASHINGTON
Top achievements
Rank 1
STATE OF WASHINGTON asked on 21 Oct 2013, 04:39 PM
Using the DataViz bar charts, is there a way to display the x-axis text on the top of the chart?  (Similar to the attachment)

2 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 23 Oct 2013, 07:31 AM
Hi,

In order to achieve this you could set categoryAxis.axisCrossingValue 0:

$("#chart").kendoChart({
  //....
  categoryAxis: {
     //....
     axisCrossingValue: 0
  }
});
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Accepted
STATE OF WASHINGTON
Top achievements
Rank 1
answered on 24 Oct 2013, 02:47 PM
That worked for my case - I had a horizontal bar chart and this is what I used: (7 is the max value of the chart)
           categoryAxis: {
               axisCrossingValue: [0, 7]
               }
Tags
Charts
Asked by
STATE OF WASHINGTON
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
STATE OF WASHINGTON
Top achievements
Rank 1
Share this question
or