![]() | 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: | TChartSeries.Delete damages XValues | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | Maris Vasilevskis <mahris> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | major | CC: | yeray |
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | TChartSeries.Delete sample | ||
My current workaround - manage XValue copy in my program, write correct values in OnGetAxisLabel. Read the explanation in the signature of the Delete override: // Deletes "Quantity" number of points from "Start" index. // Faster than calling Delete repeteadly. // If RemoveGap is True, "X" values are re-calculated to be sequential, // to eliminate gaps created by deletion. Procedure TChartSeries.Delete(Start,Quantity:Integer; RemoveGap:Boolean=False); |
Created attachment 983 [details] TChartSeries.Delete sample Fill a TChart with 101 value: for i := 0 to 100 do Chart1.Series[0].AddXY(i*5,i*5,'',clRed); A line appears on the chart, X and Y axis show labels 0..500. Now, delete 20 points: Chart1.Series[0].Delete(30,20,true); The graph is updated correctly. But X axis now show 0..80 - data point numbers instead of X values. Same problem with another XValue functions - MinXValue, MaxXValue, etc. Detected in versions 160129 and 201112,