Is it possible to flip the axes on an XY chart?

Hi, I have an XY Chart that I want to flip the X axis on, so that instead of ascending values it would display descending values. Is is possible to do that?

For Time Series it is possible to use Overrides - Graph styles > Transform - Negative Y:

For XY Chart, Transform is also mentioned in the documentation, but I haven’t seen that it is already available.

So as of now for XY Chart I think it is possible only at datasource level…

1 Like

you might want to look at business chart plugin

try it in grafana using this for Business Chart plugin

return {
  xAxis: {
    type: 'category',
    inverse: true,
    data: ['A', 'B', 'C', 'D', 'E', 'F', 'G']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [150, 230, 224, 218, 135, 147, 260],
      type: 'line'
    }
  ]
};
1 Like

Thank you, both of you!

I ended up going with the plotly plugin in the end. It seems fairly similar to Business Charts.

Plotly plugin for Grafana | Grafana Labs

1 Like