Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Changing cursor style for FacetChart clickable data points

    Hi, I was just looking at this example:
    http://www.smartclient.com/#scatterPlotCharting

    How would we alter that example to show the cursor as a crosshair or something similar when hovering over a data point? It looks like it should be using the dataPointProperties setting but I couldn't figure out how to get it work. Ideally, the charts would use the auto cursor styling by default and then switch to crosshair or pointer only when hovering over a clickable data point.

    #2
    dataPointProperties are DrawItem properties, not Canvas properties, so that's why Canvas.cursor can't be set that way.

    At the moment we have not provided a way to pass properties through to the automatically created Canvas used for interactive points, but, since you tend to be comfortable maintaining patches, the relevant function is FacetChart.drawDataPoint, and it returns the created Canvas, so it could be overridden to setCursor() on the created Canvas after calling Super().

    Comment


      #3
      I can definitely investigate patching this to look the way we want. However, it seems like you should consider changing the default behavior as well. The cursor should at least remain a pointer and not change when you hover over a clickable data point because it is confusing from a user perspective. Is that something you guys would consider changing?

      Comment


        #4
        We agree showing the text insertion indicator doesn't make sense here - we'll switch the default to crosshair.

        Comment

        Working...
        X