如何在C#中使图表图例项交互(How to make Chart Legend Items interactive in C#)
我在运行时使用win表单(C#.Net Framework 3.5)创建了一个图表。
我想让这个图表的图例项目互动。
我的要求是,当用户点击图例中存在的颜色项时 - 应打开颜色托盘,当用户从托盘中选择颜色时,所选颜色应应用于外部系列数据项。
我该如何实现这一目标? 简而言之,如何为图例项添加单击事件处理程序?
任何帮助表示赞赏。 NB
I have created a chart at run time using win forms (C#.Net Framework 3.5).
I want to make the legend items of this chart interactive.
My requirement is, when a user clicks on Color item present in legend - a color pallet should open and when user selects a color from pallet the selected color should be applied to the outer series data item.
How do I achieve this? In short how do I add a click event handler for a legend item?
Any help is appreciated. NB
原文:https://stackoverflow.com/questions/18202966