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

Area chart hover errors #101

Open
saaj opened this issue Sep 17, 2022 · 0 comments
Open

Area chart hover errors #101

saaj opened this issue Sep 17, 2022 · 0 comments

Comments

@saaj
Copy link
Contributor

saaj commented Sep 17, 2022

Steps to reproduce

  1. Run this query
CREATE TABLE test(X, split, Y);
INSERT INTO test VALUES
(1663343855819.73, 1117556, 0.58984375),
(1663343855819.73, 1117558, 0.52734375),
(1663343855819.73, 1117560, 0.09765625),
(1663343855819.73, 1117562, 3.421875),
(1663343855819.73, 1117569, 5.23828125),
(1663343855819.73, 1117561, 0.73828125),
(1663343855819.73, 1117563, 0.5703125),
(1663343855819.73, 1117564, 0.57421875),
(1663343855842.01, 1117556, 0.58984375),
(1663343855842.01, 1117558, 0.52734375),
(1663343855842.01, 1117560, 0.09765625),
(1663343855842.01, 1117562, 3.421875),
(1663343855842.01, 1117569, 5.23828125),
(1663343855842.01, 1117561, 0.73828125),
(1663343855842.01, 1117563, 0.5703125),
(1663343855842.01, 1117564, 0.57421875),
(1663343855863.23, 1117556, 0.58984375),
(1663343855863.23, 1117558, 0.52734375),
(1663343855863.23, 1117560, 0.09765625),
(1663343855863.23, 1117562, 3.421875),
(1663343855863.23, 1117569, 17.3671875),
(1663343855863.23, 1117561, 0.73828125),
(1663343855863.23, 1117563, 0.5703125),
(1663343855863.23, 1117564, 0.57421875),
(1663343855881.87, 1117556, 0.58984375),
(1663343855881.87, 1117558, 0.52734375),
(1663343855881.87, 1117560, 0.09765625),
(1663343855881.87, 1117562, 3.44921875),
(1663343855881.87, 1117561, 0.73828125),
(1663343855881.87, 1117563, 0.5703125),
(1663343855881.87, 1117564, 0.57421875),
(1663343855892.88, 1117556, 0.58984375),
(1663343855892.88, 1117558, 0.52734375),
(1663343855892.88, 1117560, 0.09765625),
(1663343855892.88, 1117562, 3.44921875),
(1663343855892.88, 1117570, 5.2578125),
(1663343855892.88, 1117561, 0.73828125),
(1663343855892.88, 1117563, 0.5703125),
(1663343855892.88, 1117564, 0.57421875),
(1663343855911.99, 1117556, 0.58984375),
(1663343855911.99, 1117558, 0.52734375),
(1663343855911.99, 1117560, 0.09765625),
(1663343855911.99, 1117562, 3.44921875),
(1663343855911.99, 1117570, 5.71875),
(1663343855911.99, 1117561, 0.73828125),
(1663343855911.99, 1117563, 0.5703125),
(1663343855911.99, 1117564, 0.57421875),
(1663343855931.44, 1117556, 0.58984375),
(1663343855931.44, 1117558, 0.52734375),
(1663343855931.44, 1117560, 0.09765625),
(1663343855931.44, 1117562, 3.44921875),
(1663343855931.44, 1117570, 5.71875),
(1663343855931.44, 1117561, 0.73828125),
(1663343855931.44, 1117563, 0.5703125),
(1663343855931.44, 1117564, 0.57421875),
(1663343855942.64, 1117556, 0.58984375),
(1663343855942.64, 1117558, 0.52734375),
(1663343855942.64, 1117560, 0.09765625),
(1663343855942.64, 1117562, 3.44921875),
(1663343855942.64, 1117570, 5.71875),
(1663343855942.64, 1117561, 0.73828125),
(1663343855942.64, 1117563, 0.5703125),
(1663343855942.64, 1117564, 0.57421875),
(1663343855961.89, 1117556, 0.58984375),
(1663343855961.89, 1117558, 0.52734375),
(1663343855961.89, 1117560, 0.09765625),
(1663343855961.89, 1117562, 3.44921875),
(1663343855961.89, 1117570, 5.71875),
(1663343855961.89, 1117561, 0.73828125),
(1663343855961.89, 1117563, 0.5703125),
(1663343855961.89, 1117564, 0.57421875),
(1663343855980.6, 1117556, 0.58984375),
(1663343855980.6, 1117558, 0.52734375),
(1663343855980.6, 1117560, 0.09765625),
(1663343855980.6, 1117562, 3.44921875),
(1663343855980.6, 1117570, 7.609375),
(1663343855980.6, 1117561, 0.73828125),
(1663343855980.6, 1117563, 0.5703125),
(1663343855980.6, 1117564, 0.57421875),
(1663343856003.33, 1117556, 0.58984375),
(1663343856003.33, 1117558, 0.52734375),
(1663343856003.33, 1117560, 0.09765625),
(1663343856003.33, 1117562, 3.44921875),
(1663343856003.33, 1117570, 15.6953125),
(1663343856003.33, 1117561, 0.73828125),
(1663343856003.33, 1117563, 0.5703125),
(1663343856003.33, 1117564, 0.57421875),
(1663343856019.81, 1117556, 0.58984375),
(1663343856019.81, 1117558, 0.52734375),
(1663343856019.81, 1117560, 0.09765625),
(1663343856019.81, 1117562, 3.44921875),
(1663343856019.81, 1117570, 29.1171875),
(1663343856019.81, 1117561, 0.73828125),
(1663343856019.81, 1117563, 0.5703125),
(1663343856019.81, 1117564, 0.57421875),
(1663343856030.9, 1117556, 0.58984375),
(1663343856030.9, 1117558, 0.52734375),
(1663343856030.9, 1117560, 0.09765625),
(1663343856030.9, 1117562, 3.44921875),
(1663343856030.9, 1117561, 0.73828125),
(1663343856030.9, 1117563, 0.5703125),
(1663343856030.9, 1117564, 0.57421875),
(1663343856049.61, 1117556, 0.58984375),
(1663343856049.61, 1117558, 0.52734375),
(1663343856049.61, 1117564, 0.57421875),
(1663343856068.86, 1117556, 0.58984375),
(1663343856068.86, 1117558, 0.52734375),
(1663343856068.86, 1117564, 0.57421875),
(1663343856068.86, 1117572, 13.328125),
(1663343856078.92, 1117556, 0.58984375),
(1663343856078.92, 1117558, 0.52734375),
(1663343856078.92, 1117564, 0.57421875),
(1663343856078.92, 1117572, 13.8046875),
(1663343856096.37, 1117556, 0.58984375),
(1663343856096.37, 1117558, 0.52734375),
(1663343856096.37, 1117564, 0.57421875),
(1663343856096.37, 1117572, 14.6328125),
(1663343856116.14, 1117556, 0.58984375),
(1663343856116.14, 1117558, 0.52734375),
(1663343856116.14, 1117564, 0.57421875),
(1663343856116.14, 1117572, 14.6328125),
(1663343856126.73, 1117556, 0.58984375),
(1663343856126.73, 1117558, 0.52734375),
(1663343856126.73, 1117564, 0.57421875),
(1663343856126.73, 1117572, 14.6328125),
(1663343856144.35, 1117556, 0.58984375),
(1663343856144.35, 1117558, 0.52734375),
(1663343856144.35, 1117564, 0.57421875),
(1663343856144.35, 1117572, 14.890625),
(1663343856162.38, 1117556, 0.58984375),
(1663343856162.38, 1117558, 0.52734375),
(1663343856162.38, 1117564, 0.57421875),
(1663343856162.38, 1117572, 14.890625),
(1663343856174.11, 1117556, 0.58984375),
(1663343856174.11, 1117558, 0.52734375),
(1663343856174.11, 1117564, 0.57421875),
(1663343856174.11, 1117572, 15.1484375),
(1663343856194.2, 1117556, 0.58984375),
(1663343856194.2, 1117558, 0.52734375),
(1663343856194.2, 1117564, 0.57421875),
(1663343856194.2, 1117572, 15.40625),
(1663343856211.07, 1117556, 0.58984375),
(1663343856211.07, 1117558, 0.52734375),
(1663343856211.07, 1117564, 0.57421875),
(1663343856211.07, 1117572, 16.13671875),
(1663343856227.65, 1117556, 0.58984375),
(1663343856227.65, 1117558, 0.52734375),
(1663343856227.65, 1117564, 0.57421875),
(1663343856227.65, 1117572, 16.13671875),
(1663343856246.16, 1117556, 0.58984375),
(1663343856246.16, 1117558, 0.52734375),
(1663343856246.16, 1117564, 0.57421875),
(1663343856246.16, 1117572, 16.13671875),
(1663343856257.08, 1117556, 0.58984375),
(1663343856257.08, 1117558, 0.52734375),
(1663343856257.08, 1117564, 0.57421875),
(1663343856257.08, 1117572, 16.13671875),
(1663343856273.4, 1117556, 0.58984375),
(1663343856273.4, 1117558, 0.52734375),
(1663343856273.4, 1117564, 0.57421875),
(1663343856273.4, 1117572, 16.13671875),
(1663343856289.27, 1117556, 0.58984375),
(1663343856289.27, 1117558, 0.52734375),
(1663343856289.27, 1117564, 0.57421875),
(1663343856289.27, 1117572, 16.13671875),
(1663343856304.21, 1117556, 0.58984375),
(1663343856304.21, 1117558, 0.52734375),
(1663343856304.21, 1117564, 0.57421875),
(1663343856304.21, 1117572, 16.39453125),
(1663343856325.0, 1117556, 0.58984375),
(1663343856325.0, 1117558, 0.52734375),
(1663343856325.0, 1117564, 0.57421875),
(1663343856325.0, 1117572, 16.39453125),
(1663343856335.4, 1117556, 0.58984375),
(1663343856335.4, 1117558, 0.52734375),
(1663343856335.4, 1117564, 0.57421875),
(1663343856335.4, 1117572, 16.39453125),
(1663343856355.62, 1117556, 0.58984375),
(1663343856355.62, 1117558, 0.52734375),
(1663343856355.62, 1117564, 0.57421875),
(1663343856355.62, 1117572, 16.39453125);
SELECT * FROM test;
  1. Add "Area" trace, X=X, Y=Y
  2. Add "Split" transform on split
  3. Move mouse over the lines

Expected result

Plotly hover tooltip appears.

Actual result

  1. No hover tooltip
  2. Errors in console
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at t.makeEventData (helpers.js:131:25)
    at T (hover.js:689:33)
    at hover.js:80:22
    at l (throttle.js:48:9)
    at t.throttle (throttle.js:57:9)
    at t.hover (hover.js:77:9)
    at a.forEach.c.onmousemove (graph_interact.js:67:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant