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 2387 - Opening the series editor sets "XValues.Order" property to "loNone"
Summary: Opening the series editor sets "XValues.Order" property to "loNone"
Status: RESOLVED FIXED
Alias: None
Product: FireMonkey TeeChart
Classification: Unclassified
Component: Editors (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-16 05:00 EST by yeray alonso
Modified: 2020-11-16 05:01 EST (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 yeray alonso 2020-11-16 05:00:35 EST
Place a Chart, a Button, a Label and a TeeCommander on the Form. Then use this code to see how "XValues.Order" is "Ascending" after creating the Series:

var Series1: TPointSeries;

procedure TForm1.Button1Click(Sender: TObject);
begin
  case Series1.XValues.Order of
    loNone: Label1.Text:='None';
    loAscending: Label1.Text:='Ascending';
    loDescending: Label1.Text:='Descending';
  end;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1:=TPointSeries.Create(Self);
  Chart1.AddSeries(Series1);
end;

Then, open the editor and go to "Series\General". You'll see "SortBy" combobox is set to "None".
Comment 1 yeray alonso 2020-11-16 05:01:55 EST
Fixed workaround here:
https://stackoverflow.com/a/45432628/509369