Line chart is out of the chart area
See original GitHub issueI 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.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >
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
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
@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.