Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo-UI bar chart display direction (axis)

I am sure this is a stupid question, but I'm just not seeing it.

I have a page with many Kendo charts. One of these appears where the bars go from left to right. The others appear where the bars go from bottom to top. What on earth is the property that controls this? I simply don't see it. I wan them all to be vertical in nature.

The single chart that is going from left to right is also the only chart that has its series predefined ([x,y,z] rather than using dataSource). It also is the only stacked chart I have. Maybe something there causes this?

like image 752
Paul Avatar asked Feb 15 '13 18:02

Paul


1 Answers

The "bar" type sets the bars horizontal:

 $("#chart").kendoChart({
     seriesDefaults: {
         type: "bar"
     }
 });

And the "column" type sets the bars vertical:

  $("#chart").kendoChart({
     seriesDefaults: {
         type: "column"
     }
  });
like image 106
andrewdudek84 Avatar answered Oct 02 '22 15:10

andrewdudek84