Flex:在 LineChart 上扩展 x 轴以获取未知的未来数据
如何在折线图上显示没有更多数据的地方的数据?例如,如果我显示 2010 年公司收入图表,则该图表现在应该只显示截至 7 月的数据(8 月及以后不显示任何数据)。这将使折线图中的线条在年中左右断裂并消失。
How do you display data on a LineChart that cuts off where there is no more data? For example, if I am showing a chart of company revenue for 2010, the chart should only show up to July now (with August and forward on showing no data). This would make the line in the line chart break and dissappear off at about midway through the year.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在 dataProvider 数组中包含月份,但将其值设置为“”而不是 1000,例如。下面的代码显示了如果运行它的话它的工作原理:
You would need to include the months in the dataProvider array, but set their values to "" instead of 1000 for example. The code below shows this working if you run it: