-
Notifications
You must be signed in to change notification settings - Fork 260
In Bars chart first line hide yAxis numbers #25
Comments
I don't know if it helps, but in the file Bar.js at line 134 you have <Axis ... />, move this line down until it's below the <G>{lines} </G> tag. Then you'll see the numbers on top, but the lines will also go on top of the bars. |
Looks like #27 addresses your first issue with the y-axis labels being covered by the bars. Once we get that merged to master, it would be great if you could verify that fixes it for your example. The pie chart example is different. I do see an extra G element (dealing with offset handling) that looks like its impacting the text labels being "centered" within each pie section. However, the problem with the example is that the combination of the length of the labels, the font size/weight, and the size of the chart make it so that the text is too big to fit into each pie section. There's also no concept of "wrapping" a label and constraining it to a particular width to fit within the pie section (is that basically what you are asking for?). I would suggest adjusting your labels to be smaller in length (if possible) and/or changing the font size/weight settings. If you see a way we can enhance the library in a generic manner to address this issue, please open a new issue and offer a proposal. I will close this for addressing the bar chart example once we get #27 merged in and as noted above, you're welcome to add a new issue to address the pie chart problem. |
#27 was merged in so closing this one now. |
First bar hide yAxis numbers...
The text was updated successfully, but these errors were encountered: