Hi all,
I have a number of datasets displayed as a linear chart in a desktop application. Occasionally, I’d like to star a particular datapoint or make it stand out as a specific event has happened.
I can create another dataset and use zero for the majority of the data and a higher value for my events, but this shows a row of stars at zero which is not ideal.
Any suggestions on something that looks good?
Hi James, you can use the new Paint events so you can decide what to paint for the data points. For example, nothing for that 0.0 values: More Control Over Your Charts – Xojo Programming Blog
1 Like
Thanks very much Javier.
The x and y points are relative to the parent control I think? Does this mean I’d need to keep track of and redraw as I scroll the plot?
Just draw in the received Graphic context (0,0 = upper left corner). The x, y values are relative to the upper-left corner of the chart itself, just in case you want to draw or keep track of these coordinates for the value for “anything else” over the chart too ![:slightly_smiling_face: :slightly_smiling_face:](https://forum.xojo.com/images/emoji/apple/slightly_smiling_face.png?v=12)