I have to draw a horizontal line for a stacked bar in a
BarChart. I have seen that I can use CartesianDataCanvas, but this
seems to be limited. If I draw lines from one point to another
point, it is always in the middle of one bar to the middle of
another bar (like in the example below). But, I need to draw from
the left side of a specific bar to the right side of the same bar.
How can I modify the example to make this possible?
Can you add half the number of pixels of a bar's width to the
left and right when you draw the line? I cant remember OTOMH how to
get the width of the bar, but it seems if you can know that, you
can draw the line the way you want.
As fas as I can see, it is only possible to draw a line
between two "bar"-points. But that is not what I want, instead I
want to draw a line
within one bar, horizontally from side to side. Moreover, it
needs to scale with the bar-width. This seems to be impossible :(