andyhill 24 Posted October 20, 2017 Share Posted October 20, 2017 Would someone be so kind as to show me an example of "creating and setting up a unimChart Series" in code at runtime - thanks in advance. Link to post Share on other sites
andyhill 24 Posted October 22, 2017 Author Share Posted October 22, 2017 Farshad, I am in desperate need to create Chart Series at runtime, can you please advise - Thanks in advance. Link to post Share on other sites
Sherzod 1188 Posted October 23, 2017 Share Posted October 23, 2017 Hi, procedure TMainmForm.UnimFormCreate(Sender: TObject); var I:Integer; myBarSeries: TUnimBarSeries; begin myBarSeries := TUnimBarSeries.Create(Self); myBarSeries.Parent := UnimChart1; myBarSeries.Title := 'new Bar'; myBarSeries.Name := 'NewBar'; myBarSeries.Brush.Color := clGreen; for I := 0 to 5 do begin UnimBarSeries1.Add(IntToStr(Random(10)+5), IntToStr(2009+I)); UnimBarSeries2.Add(IntToStr(Random(10)+5), IntToStr(2009+I)); myBarSeries.Add(IntToStr(Random(10)+1), IntToStr(209+I)) end; end; Link to post Share on other sites
andyhill 24 Posted October 23, 2017 Author Share Posted October 23, 2017 Do I free on Destroy ? Link to post Share on other sites
Sherzod 1188 Posted October 23, 2017 Share Posted October 23, 2017 No Link to post Share on other sites
andyhill 24 Posted October 24, 2017 Author Share Posted October 24, 2017 thanks Link to post Share on other sites
Recommended Posts