Skip to content

Orientation

The orientation only applies to Bars and Multimetric Bars. It allows to set the bars orientation to horizontal or vertical (default)

1
myChart.set('orientation', 'horizontal')

O1

In order to optimize space, the text corresponding to each bar is displayed inside the bar itself. This can be changed easily by specifying the text position (in/out) for the yAxis.

1
myChart.set('yAxis', { 'text': 'out'} )

The visualization will be re-arranged like this:

O2

An important note about this option is that when is set to horizontal, the dataZoom won't be displayed. It will be automatically removed (if was enabled) after the Bars visualization changes its orientation to horizontal. A message will be displayed in the browser's console.