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.

Line chart is out of the chart area

See original GitHub issue

I have an XYPlot with xDomain={[0, 5]}. The data and part of the code is here:

const data = [
  {x: 0, y: 1},
  {x: 1, y: 2},
  {x: 3, y: 9},
  {x: 6, y: 3},
]
<XYPlot height={300} width= {400} xDomain={[0, 5]} yDomain={[0, 10]}>

I want the line stops at x=5. Anything beyond 5 should be hidden. But as shown in the screenshot, the line sticks out a little beyond x=5. Any help would be appreciated.

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mcnuttandrewcommented, Aug 12, 2017

Just updated the docs, http://uber.github.io/react-vis/#/documentation/api-reference/borders all should be in working order now. marking as resolved, feel free to re-open or continue discussion under the close as necessary

0reactions
topviscommented, Aug 14, 2017

@mcnuttandrew it makes sense for rendering things like Makers. But it doesn’t look perfect if Line goes beyond the domain range. This is probably very subjective opinion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Line chart may plot gaps in lines when the data range ...
Describes an issue where the lines of a Line chart may plot with gaps when the data range of the chart contains blank...
Read more >
A Complete Guide to Area Charts | Tutorial by Chartio
An area chart combines the line chart and bar chart to show how one or more groups' numeric values change over the progression...
Read more >
Choosing the Right Chart Type: Line Charts vs. Area Charts
The Line and Area charts appear to be very similar. They even facilitate the same type of analysis, but their functions are not...
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 >
Shade the Area Between Two Lines - Excel Line Chart
In this video, we shade the area between two lines of a line chart to visualise the difference clearer.There are many reasons to...
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