将自定义元素添加到 Flex 图表
如果您查看谷歌财经或其他此类图表,它们通常在图表上有一个小五边形,表明何时支付股息。
注意屏幕截图中的 D 标记
http://www.google.com/finance?q=NASDAQ:INTC 在此链接中,您将沿着图表 X 轴看到 A、B、C、D ....。 如果您选择更大的数据范围(例如 2005-2010 年),那么您将看到沿 x 轴的蓝色分隔标记。
Flex 中有什么东西可以让我们做到这一点吗? 该功能称为什么?
问候, 沙阿
If you see google finance or other such charts, they usually have a small pentagon on the chart that indicates when the divident was paid.
note the D markers in the screenshot
http://www.google.com/finance?q=NASDAQ:INTC
In this link you will see A,B,C,D .... along the charts X-Axis.
If you choose a larger data range say 2005- 2010 , then you will see blue divident markers along the x-Axis.
Is there any thing in Flex that will allow us to do that ?
What is that feature known as?
Regards,
Shah
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然无法访问他们的代码,但对标准 Flex SDK 中的 Flex Charting 组件有相当多的了解,我几乎可以完全肯定地说,Google 财务图表不使用 Flex绘制图表。
也就是说,您可以扩展 Flex 图表并执行一些相当强大的操作。这包括自定义标记。
这是一篇很棒的文章关于向图表中添加额外的元素和图层。 这篇文章有点旧,但自撰写以来 Flex 图表并没有太大变化。它应该提供有关开始自定义图表所需的基本信息。
Without having access to their code, but understanding quite a bit about the Flex Charting components that you will find in the standard Flex SDK, I can say with almost complete certainty that the google finance charts are not using Flex Charting.
That said, you can extend the Flex charts and do some fairly powerful things. This includes custom markers.
Here is a great post about adding extra elements and layers to your charts. The article is a bit older, but the Flex Charts haven't changed much since it was written. It should give a basic idea about what it takes to start customizing your charts.