Uploaded image for project: 'ZK Charts'
  1. ZK Charts
  2. ZKCHARTS-145

Provide callback registration for point drag and drop events

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 10.3.3.0
    • Security Level: Jimmy
    • None

      User Story

      As a developer, I want to listen to the user dragging and dropping chart elements per the highcharts drag and drop feature.

      If I enable drag and drop, I want to be able to listen to the following events in Java listener, without having to manually relay the event from the client-side handler.

      Currently, I need to register a JS event handler through chart.getPlotOptions().getSeries().addExtraAttr(), and send the event data to the component's server-side listener manually.

      Acceptance Criteria

      Event listener on chart (or dedicated event listener in plotOption) to listen to the 3 drag events:
      https://api.highcharts.com/highcharts/plotOptions.series.point.events.dragStart
      https://api.highcharts.com/highcharts/plotOptions.series.point.events.drag
      https://api.highcharts.com/highcharts/plotOptions.series.point.events.drop

      events need to contain the drag data (position, value, etc), as well as point information (serie index, point index in serie) or a reference to the point itself if parsable from the event data.

      Details

      current POC sample attached

            Unassigned Unassigned
            MDuchemin MDuchemin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: