Page 1 of 1

Design issue: use one tchart component or several?

Posted: Sun Aug 27, 2023 4:04 am
by 16595372
I would like to use tchart from several units from popupmenu and actions handler.
Shall I use one tchart component in each form or only one that can be common used in for instance centalized mychart.pas

Re: Design issue: use one tchart component or several?

Posted: Mon Sep 04, 2023 2:08 pm
by yeray
Hello,

That's an interesting design decision for your application that can be considered for any component, not just specifically for TeeChart.
I'd say it's more elegant and consistent (and less error prone) to reuse a classes/components, but you will probably want to also consider the cost (time investment) vs benefit relation of such implementation.
You can find deeper analyses around about the alternatives you have.