Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-08

TAChart area series improvements

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexander Klenin
Alexander Klenin wrote 16 lines
On Tue, Jun 1, 2010 at 22:53, Rick wrote: > I was able to use axis transformations/linear offset to stack several series > vertically as we discussed. > I discovered an issue with area series and linear transformation, however. > I expected area series to shade the area between the horizontal axis and > graph. ?Instead, it appears to > fill the area between the bottom of the chart and the graph. ?It doesn't > respect the linear transformation. > Try making an area series and then shifting it up 10. ?It'll draw all the > way down to -10 on its axis. Well, that's kind-of as-designed, I think. At least it was that way before I started maintaining TAChart, and I suspect it was done intentionally. But you are right that drawing to zero level deserves at least an option. There are some tricky corner cases -- e.g. drawing series with both positive and negative values, but it is doable.

Implemented in r27024, r27024.

Show quoted text 7 lines
> Also, I think somebody asked about this before but it would be nice if there > was an area series that would > draw an outline but not the vertical lines at each data point. ?That looks > like it'll be a pain in the butt to > implement, but if you ever find yourself needing to kill a little time ;) > ?It would make for prettier stairstep > graphs that don't have the area shaded, IMHO.

Implemented in r27022 -- AreaContourPen and AreaLinesPen are now separated.

Alexander S. Klenin

Reply by email