I've looked at the docs/examples for chartjs, but does anyone know a way to do the following?
- Create bars where the width (x-axis) is variable but the height is always full (aka the entire y-axis)?
- There can be x number of those bars in a chart
- Create a line that spans all the way across the x axis but can change it's y-axis (aka not a straight line, but a curvy one).
I have a crude drawing here where the yellow is the bars and the black is the line
I kinda got the first part down using stacked bars and swapping the axis, but the y-axis (the bars height) is only set to 1. That's a problem when trying to draw a curved line in mixed mode since there is only one y-axis point (instead of many y-axis points):
Here's another attempt that has multiple y-axis points, but I cannot control the bar widths:
If anyone can help (or at least tell me if I'm going in the right direction), it would be greatly appreciated!
Please see code in the jsfiddle link