How do I create a stacked area chart with historical average and forecast? #11268
-
I need to create a stacked area chart like so I'm able to get the chart value and areas fine. There doesn't appear to be an option for averages and forecast as depicted in the chart. Is this something that'll need a custom plugin, has anyone done something like this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@satyasaadhak for the average line, you can use chartjs-plugin-annotation. Here is the sample about the average line: https://www.chartjs.org/chartjs-plugin-annotation/latest/samples/line/average.html About forecast, I think could calculate the forecast value/s (if you don't have them) and adds the forecast values as additional dataset. |
Beta Was this translation helpful? Give feedback.
-
Is there any reference to all the custom plugins available? Since this annotations plugin is documented on the official site, I wondered if it is listed somewhere as well |
Beta Was this translation helpful? Give feedback.
@satyasaadhak for the average line, you can use chartjs-plugin-annotation. Here is the sample about the average line: https://www.chartjs.org/chartjs-plugin-annotation/latest/samples/line/average.html
About forecast, I think could calculate the forecast value/s (if you don't have them) and adds the forecast values as additional dataset.