我可以有一个同时包含绘图和线条的弹性图表吗?
Flex 有一个绘图组件和一个折线图组件。但我希望制作一个图表,其中包含连接点的线以及带有翻转信息的较大点。这容易实现吗?我是否必须从头开始创建自定义组件才能实现此目的?
Flex has a plotchart component and a linechart component.. but I am looking to make a chart that has lines connecting points as well as larger dots with rollover info. Is this easily possible? Would I have to create a custom component from scratch to achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来您需要的是带有
itemRenderer
的 LineChart,而不是混合类型图表。查看在 Flex 折线图中显示数据点
It looks like what you need is a LineChart with
itemRenderer
rather than a mixed type chart.Have a look at Displaying data points in Flex Line chart
如果我理解正确的话,您需要一个具有多个系列、不同显示类型的图表。这在 Flex 中很容易做到。 这篇关于多系列图表的文章应该可以帮助您入门。
如果您需要 Flex 3,请尝试这篇文章。
这是一个非常基本的绘图+折线图示例。它一点也不漂亮,但它可能会让您了解如何开始。
If I understand you correctly, you want a chart with multiple series, of different display types. This is pretty easy to do in Flex. This article on multiple-series charts should get you started.
If you need Flex 3, try this article.
Here is a very basic example of a plot+line chart. It's not pretty at all, but it might give you an idea of how to get going.