Overlapped line chart show wrong color order when hover
See original GitHub issueLightweight Charts Version: 3.4.0
Steps/code to reproduce:
var series = chart.addLineSeries({
color: "green",
lineWidth: 2
});
series.setData(data);
var series2 = chart.addLineSeries({
color: "red",
lineWidth: 2
});
series2.setData(data);
Actual behavior:
The crosshair when hover show as red but the line show in the chart is green.
Expected behavior:
The crosshair when hover should be in green since the green line is above the red line
Screenshots:

CodeSandbox/JSFiddle/etc link:
https://codesandbox.io/s/hardcore-frost-3pxjn?file=/src/index.js
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Overlap of color fill between 2 line series react chartjs
I having this issue in version 3.6.0. chart.js · react-chartjs-2 · Share.
Read more >How to Show Overlapping Lines in Chart JS - YouTube
How to Show Overlapping Lines in Chart JSIn this video we will explore ... We need to visually adjust it and make sure...
Read more >Overlapping lines, change display order
I want to bring one line to the front and overlap the other. I've tried to change the ordering in the 'Line Values'...
Read more >Graph-like Charts - Special Settings
Number overlay charts display a value either by itself or over an underlying chart. These are a great choice for clearly displaying information...
Read more >Line chart options | Looker - Google Cloud
If set to multiple colors, colors are assigned to each series in order. The first series in the underlying table is assigned the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@thanhlmm Sure.
I’d start from the following places:
Probably there is some differences between the order of sources for crosshair and for pane.
Yeah whatever order but I think I should show the same like what the line is displayed, If it is green, the crosshair should show green