Issues with renderTick function in LineChart #2106
Unanswered
mariela-plaza
asked this question in
Q&A
Replies: 1 comment
-
Update: I noticed the same issue happens in the official nivo page for the Line Chart (see #2111) so the problem seems to be the Line Chart itself when it is configured to be responsive rather than a bad implementation of the renderTick function in the Line Chart like I first thought. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, thank you for this amazing library. I've been using it to implement some charts in my job's application and the results are quite nice.
So, my issue is the following: so far, I've implemented 2 charts, the Heatmap Chart and the Line Chart.
In both of these charts I've used a function for renderTick to shorten the length of my labels, since they can be quite long. The implementations are very similar between the charts, changing only how much I shorten the labels and the orientation of the labels, which I set with css classes
Here is an example of the implementation, which was made by rpearce in this issue: #353
This implementation works perfectly with the Heatmap Chart, but in the Line Chart I get a bunch of errors in the console when resizing the window (or opening the Dev Tools):
Does anybody knows why this happens and what I can do to prevent this? If this is an issue that only occurs with the Line Chart I could see if I could exchange it for the Scatter Plot Chart instead.
I've been looking into this problem and found some issues opened in the past that may be related to this, but I am not entirely sure:
Any feedback you could give me would be great! Thanks to all in advance!
Beta Was this translation helpful? Give feedback.
All reactions