Search found 4 matches
- Fri Dec 29, 2017 3:46 pm
- Forum: VCL
- Topic: Scale axes to shown data
- Replies: 7
- Views: 19506
Re: Scale axes to shown data
How is it that with // Turn of automatic and apply min and max if tmpMax >= tmpMin then begin aChart[S].CustomVertAxis.AutomaticMinimum := false; aChart[S].CustomVertAxis.AutomaticMaximum := false; aChart[S].CustomVertAxis.Maximum := tmpMax; aChart[S].CustomVertAxis.Minimum := tmpMin; // This one en...
- Wed Dec 27, 2017 10:16 am
- Forum: VCL
- Topic: Scale axes to shown data
- Replies: 7
- Views: 19506
Re: Scale axes to shown data
OK this is what I ended up with. I have one standard shared X axis, 3 custom Y axes, some of which may or may not have data. procedure TFormCoultCell2.CheckAxes(const aChart: TChart; const nLastPointsToShow: Cardinal); var I, S, Ax: Integer; tmpMax, tmpMin: Double; begin // 0 and 1 give full scale i...
- Mon Dec 18, 2017 11:12 am
- Forum: VCL
- Topic: Scale axes to shown data
- Replies: 7
- Views: 19506
Re: Scale axes to shown data
Thanks for the help. I have one shared standard bottom ax and three custom Y-axes on the right. I do not fully understand the code because I had no time to read the docs (got to run to airport now), but it seems to work. procedure TFormCoultCell2.CheckAxes(const aChart: TChart; const nLastPointsToSh...
- Thu Dec 14, 2017 3:24 pm
- Forum: VCL
- Topic: Scale axes to shown data
- Replies: 7
- Views: 19506
Scale axes to shown data
Hi, I want to create an option where with one checkbox it is possible to see last 20 minutes of the graph. I started with // Graph settings if CheckBoxGraphsLast20m.Checked then with ChartRaw.BottomAxis do begin Automatic := False; AutomaticMaximum := True; AutomaticMinimum := False; Minimum := Now-...