chart.js with colorized intersected areas: customize intersect rule
chart.js with colorized intersected areas: customize intersect rule
I have a line chart with two datasets.
I would like to colorize only the area below the red line but max up to the yellow line - i.e. kind of intersection - but only one half.
This is with defaults regarding filling:
This results, if I set fill
of dataset 0 = 1
(or fill
of dataset 1 = 0
almost same with swapped colors)
fill
1
fill
0
But what I like is to fill only the area of, what is kept white abouve.
Is there a way to customize the filled areas? I.e. setting a rule when to fill (i.e. data point of dataset 0 > data point of dataset 1 etc.)?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Comments
Post a Comment