GSS-Cogs / chart-builder

The Chart Builder is a proof-of-concept app to understand the feasibility of using a CSV file (or SPARQL query) to generate and customise a chart or data visualisation
https://chart-builder-no4vxskx7a-nw.a.run.app
2 stars 0 forks source link

Allow users to specify the axis type #129

Closed charlesons closed 2 years ago

charlesons commented 2 years ago

QA issue identified with the following chart on the Adaptation dashboard, the X axis labels should be showing the dates as 2002-2003, etc.

image.png

Desired output as shown in the Climate Change v1 dashboard

image.png

charlesons commented 2 years ago

Issue was resolved by introducing chart properties to allow the user to specify the axis type. For axes with categorical labels such as the one identified in the QA issue above the user can set the axis type property to 'Category'.

The relevant plotly docs are here:

https://plotly.com/javascript/reference/layout/xaxis/

charlesons commented 2 years ago

Remediated chart shown below:

image.png

And newly introduced chart properties

image.png

image.png