简体   繁体   中英

Flex Charts — How can I change the color of a chartItem on rollover?

Is there a way to set a rollover color for each series in a chart?

For instance, I have a column chart with two series: one series is set to blue and the second series is set to gold.

When the user mouses over the blue series, I would like the blue to turn to bright blue. And when the user mouses over the gold series, I would like the gold to turn to bright gold.

Also, is it possible to change the color of the chart item when a chart item is clicked?

Thanks,

Lacy

quietlyscheming has a lot of excellent examples. Basically you need to create your own itemRenderer for the series and trap the mouse moving over it and change states or colours at it does. This is a very well documented path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM