Case when options.eventsCallbacks.zoomIn not owrking #46

Closed
opened 2 months ago by glitch4347 · 2 comments
Owner

I define options like:

margin: { right: 200, left: 200, bottom: 20, top: 20 },
    renderLegend: false,
    axis: {
      y1: { isActive: true, invert: false, range: [4000, 5500] },
      y: { invert: false, range: [-20, 5] },
      x: { format: AxisFormat.TIME, ticksCount: 8, range: xAxisRange }
    },
    zoomEvents: {
      mouse: {
        zoom: { isActive: true, orientation: BrushOrientation.HORIZONTAL },
        pan: { isActive: false }
      },
      scroll: { zoom: { isActive: false }, pan: { isActive: false } },
      eventsCallbacks: { zoomIn: function(ranges: AxisRange[]) { alert('Zoom in-3'); } }
    }

but it's not invoked on zoomIn

I define options like: ``` margin: { right: 200, left: 200, bottom: 20, top: 20 }, renderLegend: false, axis: { y1: { isActive: true, invert: false, range: [4000, 5500] }, y: { invert: false, range: [-20, 5] }, x: { format: AxisFormat.TIME, ticksCount: 8, range: xAxisRange } }, zoomEvents: { mouse: { zoom: { isActive: true, orientation: BrushOrientation.HORIZONTAL }, pan: { isActive: false } }, scroll: { zoom: { isActive: false }, pan: { isActive: false } }, eventsCallbacks: { zoomIn: function(ranges: AxisRange[]) { alert('Zoom in-3'); } } } ``` but it's not invoked on zoomIn
Poster
Owner

I use react

I use react
Poster
Owner

it's because in this case eventsCallbacks inside zoomEvents.
Should be { zoomEvents:{...}, eventsCallbacks:{...}}

it's because in this case eventsCallbacks inside zoomEvents. Should be `{ zoomEvents:{...}, eventsCallbacks:{...}}`
glitch4347 closed this issue 2 months ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.