Cartesian Grid Over Graph (Rendered last)
See original GitHub issueDo you want to request a feature or report a bug?
Feature
What is the current behavior?
The source order (for chart rendering) is hard-coded
What is the expected behavior?
A few options I can think of:
- Respect the source order based on the order of the children but might enforce users to remember order unless there are sane (current) defaults in place
- Have a flag that renders cartesian grid last. e.g.
gridOnTop: false // default
. However, this will mean only the grid itself is affected - Have a prop with an array of components’
displayNames
as strings so we can map over them within the chart rendering function. - [Suggestions?] Any other way without losing functionality?
I have attempted [2] and have a ready pull request for your review. Feedback appreciated
Here is an example where the grid is rendered on top of the chart (based on the proposed changes in [2].
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Recharts - Adjust the position of the yAxis cartesian grid
This small snippet is basically based on the second one. Note that, to solve the grid adjusting, I simply added an empty bar...
Read more >Using Render Grid, Cartesian Grid, and Polar Grid | Inkscape ...
In this recipe we will see how we can render different kinds of grids using Render | Grid, Render | Cartesian Grid and...
Read more >Cartesian Chart Customisation - AG Grid
The grid will select best-guess defaults based on the type of chart, the column chart data types, and the data being plotted. If...
Read more >Cartesian Charts - Bar Chart : Support Portal
Series are overlayed on the chart. Stacked - Series values are added on the y-axis, so each consecutive series appears above the last....
Read more >Cartesian Surface Graphs - Documentation - Altair
Example of a near field displayed on a Cartesian surface graph. ... Enable the major and minor grid lines for surface graphs as...
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 FreeTop 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
Top GitHub Comments
@jetpack3331 I tried and you can make it like this:
+1 for option [1]