andyhill 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 comment Share on other sites More sharing options...
andyhill 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 comment Share on other sites More sharing options...
Sherzod 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 comment Share on other sites More sharing options...
andyhill Posted October 23, 2017 Author Share Posted October 23, 2017 Do I free on Destroy ? Link to comment Share on other sites More sharing options...
Sherzod Posted October 23, 2017 Share Posted October 23, 2017 No Link to comment Share on other sites More sharing options...
andyhill Posted October 24, 2017 Author Share Posted October 24, 2017 thanks Link to comment Share on other sites More sharing options...
Recommended Posts