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.

Brush (lineX, lineY) selection values are not available with line charts

See original GitHub issue

Version

5.0.2

Reproduction link

https://codepen.io/tamersalama/pen/mdOraGb?editors=1111

Steps to reproduce

1- Create a line chart with a horizontal selector (lineX) brush

2- Use the brush to select a data range

3- The onbrushselected event fires up normally, however the event parameters’ dataIndex (params.batch[0].selected[0].dataIndex) returns an empty array

4- Changing the chart type to scatter or bar will result in a proper dataIndex being returned

What is expected?

It’s expected that the dataIndex for the selection to have an array of selected values

What is actually happening?

dataIndex within params.batch[0].selected[0].dataIndex is empty

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
coolRogercommented, Aug 25, 2022

really need this feature for line chart

@Ovilia

0reactions
Oviliacommented, Nov 8, 2022

As the document states:

Currently, supported brush types include: scatter, bar, candlestick.

If you are interested in making this feature, please open a pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache ECharts - Brush with line chart range selection
Setting up a line chart with line series and a horizontal selection brush ( lineX ) doesn't seem to provide a way of...
Read more >
Let's Make a Brushable Line Chart / Trevor John Gale
Brush is a useful way of allowing users to select a subset of the data. There are multiple ways of adding brush interactions...
Read more >
How to correct a Line chart with no line on the chart in Excel
Many a times you find that there are no lines in your line chart in the Excel, it is very weird and difficult...
Read more >
echarts langEN 源码 - seaxiang
... brush: { title: { rect: 'Box Select', polygon: 'Lasso Select', lineX: ... magicType: { title: { line: 'Switch to Line Chart', bar:...
Read more >
Plot Pack Manual
Some states do not allow limitations of duration of any implied warranty, so the ... Use the X and Y properties to set...
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