question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to enableSlices for both x and y?

See original GitHub issue

Hi,

According to the example and also the type definition ((JSX attribute) enableSlices?: false | "x" | "y" | undefined) for the enableSlices attribute, I can only enable one at a time. Would it be possible, somehow, to add the horizontal dashed line on the hover (making a cross) but having the same behaviour as enableSlices=“x”? (like the tooltip showing all the current multiple line values)

Like this, but also having the horizontal line while hovering

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
plouccommented, May 31, 2020

@nigellima I’m glad you found a way to achieve what you wanted! I’m gonna close this then.

1reaction
nigellimacommented, May 31, 2020

@wyze @plouc I’ve managed to achieve the results by customizing the single point tooltip (adding all values as it was enableSlices=“x”). Thanks for your support

Read more comments on GitHub >

github_iconTop Results From Across the Web

Line chart | nivo
Given an array of data series having an id and a nested array of points (with x, y properties), it will compute the...
Read more >
Area color from marker [Line Chart] #652 - plouc/nivo - GitHub
If the line chart goes over that marker, I'd like to fill in a (red) area from the line to the marker. Is...
Read more >
@nivo/line examples - CodeSandbox
Learn how to use @nivo/line by viewing and forking @nivo/line example apps on CodeSandbox.
Read more >
Nivo line chart with X as dates and Y as number - Stack Overflow
I'm trying to implement a nivo line chart where the data from backend looks like this: const data = [ { id: 'events',...
Read more >
microsoft excel - Graph keeps showing two different lines
X and Y table but it is showing two lines (x is a line and Y is a line) while what i want...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found