Skip to content

Highlight not working properly #1313

@lippyDesign

Description

@lippyDesign

If I do the follwing:

<XYPlot width={width} height={height}>
<HorizontalGridLines />
<VerticalGridLines />
<XAxis />
<YAxis />
<Highlight onBrushEnd={this.handleZoom} />
<HexbinSeries
    animation
    sizeHexagonsWithCount
    className="hexbin-size-example"
    radius={15}
    data={data}
    onValueClick={(datapoint, event) => {
        console.log({ datapoint, event });
    }}
/>

the highlighting drops randomly and unexpectedly (as if i release mouse), but i am still highlighting, however if I move Highlight to the end:

<XYPlot width={width} height={height}>
<HorizontalGridLines />
<VerticalGridLines />
<XAxis />
<YAxis />
<HexbinSeries
    animation
    sizeHexagonsWithCount
    className="hexbin-size-example"
    radius={15}
    data={data}
    onValueClick={(datapoint, event) => {
        console.log({ datapoint, event });
    }}
/>
<Highlight onBrushEnd={this.handleZoom} />

the highlighting works as expected, but now the Hexbin onValueClick event does not work. This is very annoying and is preventing us from going to prod with this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions