Skip to content

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

Screenshot 2020-04-01 at 23 19 47

The format needs to match the chartjs api. e.g.: https://www.chartjs.org/docs/latest/axes/cartesian/time.html

Examples from user questions:

  • 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"}}}}