BUG : Using customized Axis labels does not work
See original GitHub issueI have the following code in my chart :
<XAxis label={<Hello />} />
My customized label is this :
var Hello = React.createClass({
render: function() {
return <div>Hello!</div>;
}
});
When I run this code the x-axis shows with the ticks and tick values, but there is no x-axis label.
If I instead use a plain string :
<XAxis label="Hello" />
the x-axis label shows but it overlaps the tick values.
I just want an x-axis label that does not overlap the ticks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Issue with custom XAxis labels in UI for WinForms - Telerik
Hi, I've got a RadChart that I'm building on the fly from a filtered binding source. It shows some values on the Y...
Read more >Line Chart corrupted when custom X-axis labels assigned.
I have a line chart with a LOT of Y data values (1000+), and the chart looks fine until I try to set...
Read more >Bug in ggplot2 labs function? Labelling the x-axis doesn't ...
This is the first time I come across R refusing to rename the label of the x-axis when using ggplot2. When using the...
Read more >Label x-axis - MATLAB xlabel - MathWorks
This MATLAB function labels the x-axis of the current axes or standalone ... Modifying the label appearance is not supported for all types...
Read more >Vizlib Bar Chart - Full legacy change log
Bug Fixes: [LIB-6322]: Bar Chart Master Item issues; [LIB-6294]: Incorrect tooltip values with custom axis scales ...
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
Same Issues here
The component
<Hello />
has been rendered, but thediv
is rendered is svg, so theHello
is not visible.Please use svg elements instead, or just use
label="hello"
.