本文介绍了我无法在饼图聊天中为饼图的各个部分(切片)触发事件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我无法在饼图聊天中为饼图的各个部分(切片)触发事件。 我提到了图表事件代码... 覆盖protected void OnInit( EventArgs e) { if(!Page.IsPostBack) this.Chart1.Click + = new ImageMapEventHandler(Chart1_Click); base.OnInit(e); InitializeComponent(); base.OnInit(e); } protected void Chart1_Click(对象发送者,ImageMapEventArgs e) { //代码 } 解决方案 Hi,I'm unable to fire an event in the pie chat for the individual sections(slices) of the pie chart. I have mentioned the chart event code ... override protected void OnInit(EventArgs e) { if (!Page.IsPostBack) this.Chart1.Click += new ImageMapEventHandler(Chart1_Click); base.OnInit(e); InitializeComponent(); base.OnInit(e); } protected void Chart1_Click(object sender, ImageMapEventArgs e) { //Code } 解决方案 这篇关于我无法在饼图聊天中为饼图的各个部分(切片)触发事件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!