折线图图例中显示多个数据
我遇到了一个问题,当图表数据显示图例时,必须显示图表的信息。
但我需要显示每个图例的多个数据列。
你们谁有这种类型的组件吗,请分享给我。这是非常紧急的。
请检查随附的 jpeg 以供参考。
谢谢, 拉维
i had a issue, when the chart data is displaying the legends has to be shown theinformation of the charts.
But i need to show the multiple data columns for each each legends has to be displayed.
Can any one of you having this type component , please share to me. It is very urgent.
Please check the attached jpeg for reference.
Thanks,
Ravi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要做的是创建一个 项目渲染器 包含或扩展
mx.charts.LegendItem
。这是一个相当容易使用和配置的类。出于许可原因,我无法在此处发布该方法的代码,但请查看mx.charts.Legend
了解如何从图表中获取 legendData 并配置 LegendItem 实例在您的数据网格中使用。然后您可以使用
mx.controls.AdvancedDataGrid< /code>
或
mx.controls .DataGrid
包含您的 LegendItem 渲染器以及您想要与其一起显示的其余数据。What you want to do is create an item renderer that contains or extends
mx.charts.LegendItem
. It's a fairly easy class to use and configure. I can't post the code for the method here for licensing reasons, but check out the privateaddLegendItem
method on themx.charts.Legend
to see how you can take the legendData from your chart and configure a LegendItem instance to use in your data grid.Then you can use an
mx.controls.AdvancedDataGrid
ormx.controls.DataGrid
to contain your LegendItem renderers and the rest of the data you want to display along with them.