DevExtreme jQuery/JS - Rotate and Invert the Chart

When the Chart is rotated, its axes are swapped around.

DevExtreme HTML5 JavaScript Charts DevExtreme HTML5 JavaScript Charts RotatedChart

To rotate the Chart, set the rotated option to true.

JavaScript
  • $(function() {
  • $("#chartContainer").dxChart({
  • // ...
  • rotated: true
  • });
  • });

Besides being swapped around, chart axes can be inverted, or "mirrored".

DevExtreme HTML5 JavaScript Charts DevExtreme HTML5 JavaScript Charts InvertedArgumentAxis DevExtreme HTML5 JavaScript Charts InvertedValueAxis

To invert both argument and value axes, assign true to the inverted option of the commonAxisSettings object. The same option declared in the argumentAxis or valueAxis object inverts a specific axis.

JavaScript
  • $(function() {
  • $("#chartContainer").dxChart({
  • // ...
  • commonAxisSettings: {
  • inverted: true
  • },
  • // or for a specific axis
  • argumentAxis: {
  • inverted: true
  • },
  • valueAxis: {
  • inverted: true
  • }
  • });
  • });
See Also