将自定义元素添加到 Flex 图表

发布于 2024-10-03 02:33:22 字数 433 浏览 0 评论 0原文

如果您查看谷歌财经或其他此类图表,它们通常在图表上有一个小五边形,表明何时支付股息。

alt text

注意屏幕截图中的 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.

alt text

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼眸印温柔 2024-10-10 02:33:22

虽然无法访问他们的代码,但对标准 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.

the truth is, that building a custom chart element is not necessarily a simple task. With power comes complexity, and to build even a simple chart extension, there’s a fair amount of learning to be done about how the journey is made from data values to pictures on the screen.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文