border around a chart
See original GitHub issueHow to draw a border around a chart?
According to https://github.com/rrag/react-stockcharts/issues/310, I should change border with
.react-stockcharts-grabbing-cursor,
.react-stockcharts-crosshair-cursor
However, looking into html, a chart is created with “g” without a css class attached. I want to have a border-bottom
at the end of each chart. So actually, I can use
<XAxis axisAt="bottom" orient="bottom" showTicks="false"/>
to simulate a border at the bottom of a chart.
I want to use something simpler:
border-bottom: 1px solid black;
How can I do this?
The “Chart” has no property such as “borderStyle”.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to Make a Border Around a Graph in Excel
Hover over the Dashes option and choose a style for the border, such as dashed or dotted lines. You can also hover over...
Read more >Apply or remove cell borders on a worksheet - Microsoft Support
By using predefined border styles, you can quickly add a border around cells or ranges of cells.
Read more >Add a border and background to a chart in Pages on Mac
You can add a border and a background color to any 2D bar, column, area, or scatter chart. A 2D column chart with...
Read more >Chart Area Border | Chart.js
Chart Area Border. config plugin data. const config = { type: 'line', data: data, options: { plugins: { chartAreaBorder: { borderColor: ...
Read more >How to Add/Remove Chart Border in Excel
Step 1: Click on the border, right click to load menu, select 'Format Chart Area'. ... Step 2: On Format Chart Area, under...
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
Ended up creating a custom component for that purpose:
@rrag do you want me to open a pr with this? I can name it
HorizontalLine
.Turned out it’s fixable by passing
clip={false}
toGenericChartComponent
rendered inStraightLine
. Opened a pr for it https://github.com/rrag/react-stockcharts/pull/538