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 140

Summary: [TV52012496] In circular gauges, naming of Geenline and Redline It may be better t...
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: david, routeur01
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2013-11-20 09:59:52 EST
In circular gauges, naming of Geenline and Redline It may be better to call then Sector1 and Sector2. I also want to have sector 3. (green,yellow,red)
Related to TV52012497, TV52016737
Also related to NET's TF02014225 (completed) [created:2007-10-03T13:21:28.000+01:00 reported by:narcis@steema.com reported in version:8.01 (TeeChart VCL)]
Comment 1 david berneda 2014-03-12 07:03:53 EDT
One way to implement this could be adding a new "Lines" property of type "TGaugeRangeCollection".

Then, the current GreenLine property will be an alias to Lines[0] (the first range), and RedLine will be an alias to Lines[Lines.Count-1] (the last range).

This will enable adding multiple extra line ranges with specific start and end limits, and customize their formatting properties, for example:

var yellow : TGaugeSeriesPointer;

yellow :=Gauge1.Lines.Add( 30,70 );   // from 30% to 70%

yellow.Color := clYellow;
Comment 2 christopher ireland 2014-03-12 07:15:52 EDT
This already exists in .NET:

public ColorLineCollection ColorLines
{
  get { return colorLines; }
  set { colorLines = value; }
}
Comment 3 david berneda 2014-03-17 09:59:56 EDT
Fixed. Added new Ranges collection property. 
Existing GreenLine corresponds to Ranges[0], and RedLine to Ranges[1].