AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
489 stars 123 forks source link

Chart axes get mixed up #50

Closed namedgraph closed 3 years ago

namedgraph commented 3 years ago

It looks like that for ScatterChart and LineChart, the X/Y axes somehow get switched: https://linkeddatahub.com:4443/demo/northwind-traders/charts/6616b879-d50d-4091-9e3d-63b488c57822/

namedgraph commented 3 years ago

https://developers.google.com/chart/interactive/docs/customizing_axes#terminology

Major/minor axis:

The major axis is the axis along the natural orientation of the chart. For line, area, column, combo, stepped area and candlestick charts, this is the horizontal axis. For a bar chart it is the vertical one. Scatter and pie charts don't have a major axis. The minor axis is the other axis.

namedgraph commented 3 years ago

Looks like we need to handle bar chart as a special case and specify X/Y access as they are now, and reverse axes for the other chart types.