-
-
Notifications
You must be signed in to change notification settings - Fork 32
Advanced chart options
Rello edited this page May 9, 2021
·
9 revisions
Analytics is using a predefined set of chart options to work with most use cases and devices. If specific options are required, the chart can be manipulated on per-report level.
Advanced chart options can be entered in the report definition below the chart type
The format needs to match the chartjs api. e.g.: https://www.chartjs.org/docs/latest/axes/cartesian/time.html
-
change the x-axis to write months and not days
{"scales": {"xAxes": {"time": {"unit" : "month"}}}}
-
Input data just has day/month like "12.03" and missing year
{"scales": {"xAxes": {"time": {"format" : "DD.MM"}}}}
-
Input data is based on unix timestamp
{"scales": {"xAxes": {"time": {"format" : "X"}}}}