![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Can not trigger an event When clicking a button | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | liujia <jia_liu> |
| Component: | Chart | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | major | CC: | chris |
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | screenshot | ||
But I can not trigger this event after I click or drag the tchart to rotate. Hello! This is expected behavior - there's a thread on the support forums in which the same happens in a similar set of circumstances: http://support.steema.com/viewtopic.php?f=3&t=6821 Unfortunately we have no plans to attempt to get this to work. By adding a Rotate tool to a Chart and rotating it, the Chart is automatically displayed in: Orthogonal=false If you set this to true, i.e. _tChart.Aspect.Orthogonal = true; You will see the difference and will also be able to get the ClickedSeries event working again. Thank you! I have another question about the 3D figure. I want to show the "Z" Mark Tips when the mouse over the points.But I can not find any set configs.The Mark Tips panel has only "Value","Percent","Label"..."X and Y" I want to display some custom information on marktip,what should I do? with respect to your comment 4: You can use code similar to the following: TChart _tChart; Points3D _points3D; MarksTip _marksTip; public Form1() { InitializeComponent(); _tChart = new TChart(); _tChart.Dock = DockStyle.Fill; splitContainer1.Panel2.Controls.Add(_tChart); _points3D = new Points3D(_tChart.Chart); _points3D.FillSampleValues(); _tChart.Aspect.View3D = true; _tChart.Aspect.Chart3DPercent = 50; _marksTip = new MarksTip(_tChart.Chart) { Series = _points3D, Style = MarksStyles.XValue }; _marksTip.GetText += _marksTip_GetText; } private void _marksTip_GetText(MarksTip sender, MarksTipGetTextEventArgs e) { var idx = _points3D.XValues.Value.Select(x => x.ToString(_points3D.ValueFormat)).ToList().IndexOf(e.Text); var yval = _points3D.YValues[idx].ToString(_points3D.ValueFormat); var zval = _points3D.ZValues[idx].ToString(_points3D.ValueFormat); e.Text += $" {yval} {zval}"; } |
Created attachment 927 [details] screenshot Steps: 1.I use the Tchart to draw a 3D figure. Then I add some points3Ds,and I set the "Tools"->"Other"->"Rotate". 2.I set the tchart event called "tchart1.ClickSeries". My problem: I can click the points3D to trigger "tchart1.ClickSeries" event When the tchart is loading completed. But I can not trigger this event when I click or drag the tchart to rotate.