Skip to content

How do I create a stacked area chart with historical average and forecast? #11268

Answered by stockiNail
satyasaadhak asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@satyasaadhak
Comment options

@stockiNail
Comment options

@satyasaadhak
Comment options

@stockiNail
Comment options

@satyasaadhak
Comment options

Answer selected by satyasaadhak
Comment options

You must be logged in to vote
1 reply
@stockiNail
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants