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.

BUG : Using customized Axis labels does not work

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
xenovoncommented, Jul 3, 2017

Same Issues here

1reaction
xile611commented, Jul 10, 2017
wangwang20170710164104

The component <Hello /> has been rendered, but the div is rendered is svg, so the Hello is not visible.

Please use svg elements instead, or just use label="hello".

Read more comments on GitHub >

github_iconTop 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 >

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