Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips on hover disappear with discontinuous data #183

Closed
bmcconaghy opened this issue Apr 23, 2019 · 1 comment · Fixed by #200
Closed

Tooltips on hover disappear with discontinuous data #183

bmcconaghy opened this issue Apr 23, 2019 · 1 comment · Fixed by #200
Labels
bug Something isn't working released Issue released publicly

Comments

@bmcconaghy
Copy link

With this data:

const data = [[1555819200000, 507741], [1555862400000, 505757], [1555905600000, 502]]

and this JSX for the chart:

        <Chart size={[800, 300]} renderer="canvas">
          <Settings
            theme={getChartTheme()}
            xDomain={{min: 1553861780116, max: 1556021780116}}
          />
          <Axis
            id={getAxisId('bottom')}
            position={Position.Bottom}
            showOverlappingTicks={true}
            tickFormat={dateFormatter}
          />
          <Axis id={getAxisId('left')} title={aggLabel} position={Position.Left} />
            return (
              <LineSeries
                key={key}
                id={getSpecId(key)}
                xScaleType={ScaleType.Time}
                yScaleType={ScaleType.Linear}
                data={data}
                xAccessor={0}
                yAccessors={[1]}
                timeZone="America/New_York"
              />
            );
          <LineSeries
            id={getSpecId('threshold')}
            xScaleType={ScaleType.Time}
            yScaleType={ScaleType.Linear}
            data={[[domain.min, watch.threshold], [domain.max, watch.threshold]]}
            xAccessor={0}
            yAccessors={[1]}
            timeZone="America/New_York"
            yScaleToDataExtent={true}
            customSeriesColors={thresholdCustomSeriesColors}
          />
        </Chart>

tooltips do not appear on hover. If the domain is not wider than the data, the tooltips appear, if not then they don't.

@bmcconaghy bmcconaghy added the bug Something isn't working label Apr 23, 2019
markov00 added a commit that referenced this issue May 2, 2019
Use a d3 bisect function on invertWithStep instead of relying on the minInterval and bandwidth values. This enables the use of irregular intervals as dataset for linear/time x axis

fix #195, fix #183
markov00 pushed a commit that referenced this issue May 2, 2019
## [4.0.1](v4.0.0...v4.0.1) (2019-05-02)

### Bug Fixes

* **scales:** use bisect to handle invertWithStep ([#200](#200)) ([f971d05](f971d05)), closes [#195](#195) [#183](#183)
@markov00
Copy link
Member

markov00 commented May 2, 2019

🎉 This issue has been resolved in version 4.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label May 2, 2019
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue released publicly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants