I have 2 vertical bars I draw, and I would like them to be one next to the other. I use the time to set their position, but when the chart is scaled, they may be too close or too far. I am looking for a way to calculate the difference I would like to set them up according to the X scale.
Assuming this can be done, I would need to force an update of only this calculation. My guess I need to get this information from onRender and save the last value.
By the way, I am not drawing using onRender(). Instead, I do all my drawing from onBarUpdate().
Comment