Forum > TAChart

primary Questions about TChart

<< < (4/4)

I think you are wanting the TUserDefinedSeries to do something it was not designed for. Maybe it would be better to create a new series type so that you have access to the series variables. This is not too difficult. When the series descends from TBasicPointSeries it inherits all the data handling, all you have to do is to override the Draw(ADrawer) method. You can use the code from TAreaSeries or TLineSeries as a reference. Add properties for the reference level at which the color changes, as well as the brushes and pens above and below the reference line. Maybe just like in attached demo.

Awesome code you've sent, thank you! it gave me some ideas to another problem that I'll be facing in the future

I've thought of that, but wanted to see if there was something that I was missing.

I was studying TAChart code and seems to me that makes more sense to update the tachart package, at least for the TLineSeries the TAreaSeries is a little more complex, will take a litte more time.

I've made TLineSeries work like a charm with minimal changes (wouldn't break any compatibility).
Now I'll try to figure out how can I send a suggestion of improvement to the official Dev team, maybe they can include this to the official release so more people can benefit from this functionality.

If you know how to do this kind of suggestion, I'd appreciate also.

Send feature requests or bug reports to the GitLab bug tracker ( Mention "TAChart" in the title of the report - this makes it easier for me to identify it. Carefully describe the issue, add a project to demonstrate the issue, ideally add a patch so that I can see what you want to modify in the code.

--- Quote from: Tulurdes on February 27, 2024, 05:32:47 pm ---seems to me that makes more sense to update the tachart package, at least for the TLineSeries the TAreaSeries is a little more complex

--- End quote ---
Hmmm... you are talking about the 2-color feature? I think I would not add it to the standard TLineSeries or TAreaSeries because I am rather sure that most users will not need it. One possible option could be to create a "TAChartExtraSeriesPackage" with additional series types, rarely used, but maybe too complex for the average user to write it him/herself.

Thanks a Lot!

Actually what I've done is add a color each option (ceZeroLevel) Just sent a bug tracker named "TAChart improvement suggestion on the TLineSeries"
I think you will like the approach. Didn't knew you where the responsible for TAChart, what an honor.

I'm not an average user (I think), been programming for the past 24 years, I'm just dont have experience with git and stuff, been mostly a lone dev.

Thanks again for all the help and attention.
I really hope you like the suggestion


[0] Message Index

[*] Previous page

Go to full version