[英]How to make the NVD3 discreteBarChart labels on the X axis to adapt to the width or to the number of labels?
I'm currently using a the NVD3 discreteBarChart but I have a lot of data and the labels on the X axis, which are dates in my application, are encroaching upon each other like this : 我目前正在使用NVD3 discreteBarChart,但我有很多数据,X轴上的标签(我的应用程序中的日期)正在互相侵犯,如下所示: ). )。 This doesn't happen with a multiBar or a linePlusBar chart, where the labels are automatically adapted : 使用multiBar或linePlusBar图表时不会发生这种情况,其中标签会自动调整:
How can I prevent the lablels on the discreteBar chart to impinge on the others? 如何防止离散条形图上的标签撞击其他标签?
Thanks for your answers! 谢谢你的回答!
回答得很晚,但是为了得到类似的结果,但是使用Lars提到的多条形图,您可以使用以下命令来获得类似的图形(即隐藏“堆叠”和“分组”,以及图例按钮)。
n1$chart(showControls = FALSE, showLegend = FALSE)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.