显示数据点的Flex折线图 [英] Displaying data points in Flex Line chart

查看:187
本文介绍了显示数据点的Flex折线图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个弯曲的折线图。而无需鼠标悬停在网上看到的数据点部分的默认行为,有没有办法来改变每个点的渲染和让他们始终显示? (几乎像一个连接点类型视图)。

I have a flex line chart. Instead of the default behavior of having to hover over parts of the line to see the data points, is there a way to change the rendering of each point and have them always displayed? (almost like a connect the dots type view).

推荐答案

试试这个

<mx:LineChart>
	<mx:series>
		<mx:LineSeries dataProvider="{arr1}">
			<mx:itemRenderer>
				<mx:Component>
					<mx:CrossItemRenderer/>
				</mx:Component>
			</mx:itemRenderer>
		</mx:LineSeries>
	</mx:series>
</mx:LineChart>

您可以更改的 CrossItemRenderer 的用的 DiamondItemRenderer 的或任何其它
举个例子看看这个网页的底部:使用招用图表控件

you can change CrossItemRenderer with DiamondItemRenderer or any other
For an example look at the bottom of this page: Using strokes with chart controls

这篇关于显示数据点的Flex折线图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆