如何在 Flex 图表中将自定义间隔设置为水平轴
我正在尝试将自定义步骤(间隔)设置为折线图的水平轴。 该图表从网格获取数据。网格有很多数据并且显示准确,但由于数据点太多,横轴被搞乱了。我想在水平轴上设置一个步骤,以便当您看到图表时无需将鼠标悬停在数据点上即可获得想法! 感谢您的帮助!
-Ali
I am trying to set custom step (interval) to my Line Chart's horizontal axis.
The chart gets its data from a grid. The grid has a lot of data and it is displayed accurately but because there are so many data points the horizontal axis is screwed up. I wanted to set a step on horizontal axis so that you get an idea when you see the graph without hovering the mouse on a data point!
thanks for any help!
-Ali
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
大家好!
我已经解开了这个谜!!!
只需将 horizontalAxisRenderers 添加到您的图表中
并将属性 canDropLabels 设置为 true!
axis 是轴的名称
你完成了!
但如果您仍有疑问,可以随时与我联系:
Alimsyed.com
heylo people!
I have solved the mystery!!!
just add a horrizontalAxisRenderers to your Chart
and set the property canDropLabels to true!
axis being the name of the axis
you are done!!
but if you still have questions, you can always contact me here:
Alimsyed.com