Steema Issues Database

Note: 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.



Bug 1610 - CalcClickedPart throws expection when use Bar Chart and the type is Cone/Pyramid
Summary: CalcClickedPart throws expection when use Bar Chart and the type is Cone/Pyramid
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: TeeChart for .Net 4.1.2016.05125
Hardware: PC Windows
: --- critical
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-26 03:56 EDT by Sunil Ramesh
Modified: 2016-08-29 11:51 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sunil Ramesh 2016-08-26 03:56:40 EDT
Steps to reproduce

1. Create a Bar Chart with sample data
2. Set the type of the Bar to Cone/Pyramid
3. In the TChart_MouseDoubleClick event add the below line
      tChart1.Chart.CalcClickedPart(e.Location);

throws the below exception
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Steema.TeeChart.Styles.Bar.InternalClicked(Int32 valueIndex, Point point)
   at Steema.TeeChart.Styles.CustomBar.Clicked(Int32 x, Int32 y)
   at Steema.TeeChart.Styles.Series.Clicked(Point p)
   at Steema.TeeChart.Chart.CalcNeedClickedPart(Point Pos, Boolean Needed)
   at Steema.TeeChart.Chart.CalcClickedPart(Point Pos)
   at DataGenic.Gdm.Extensibility.DataCharts.ShowSettings(TChart control, Point location) in F:\Products\Gdm5\Libraries\GdmDataCharts\DataCharts.Settings.cs:line 34
   at GdmDataChartsIde.Form1.tChart1_MouseDoubleClick(Object sender, MouseEventArgs e) in F:\Products\Gdm5\Libraries\GdmDataCharts\Ide\Form1.cs:line 61
   at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)