Page 1 of 1

Pattern per point

Posted: Mon Jun 01, 2015 5:43 pm
by 17769826
Hi, I need to show a pattern whose color is different for each point. Can this be done?

Thanks.

Re: Pattern per point

Posted: Mon Jun 01, 2015 5:44 pm
by 17769826
PS. I should have said that this is a Bar series.

Re: Pattern per point

Posted: Tue Jun 09, 2015 9:22 am
by Marc
Hi,

One approach could be to set the Bar's render style as image.

for example (taken from TeeChart's demos\series\bar\bar.htm example):

Code: Select all

Chart1.series.items[0].format.image.url="../../images/diag.png";
Here I have changed the default .jpg image to a .png image that supports transparency (optional possibility) and where the .png image represents a pattern.

Regards,
Marc

Re: Pattern per point

Posted: Thu Jun 11, 2015 10:47 am
by Marc
Hello,

As a followup on this point, pattern repeat has just been added to the image fill style for BarSeries to permit homogenous pattern repeat/tile across different bar sizes.

Regards,
Marc

Re: Pattern per point

Posted: Thu Jun 11, 2015 10:05 pm
by 17769826
Marc, I am using an image (that's what I meant by pattern). What I need is a different pattern per-point. E.g. a red hatch for one point and a blue hatch for another.
Here I have changed the default .jpg image to a .png image that supports transparency
I am already controlling color per-point. Are you saying that I can use one pattern for series 1 and another pattern for series 2, and each point's color will show through at the png's transparent areas? If so, that's exactly what I need (one pattern per series but colored per point).

Thanks, Jim

Re: Pattern per point

Posted: Fri Jun 12, 2015 10:34 am
by Marc
Hello Jim,

I hadn't thought of it in that way, to provide the point colour as background to the transparent pattern. Default behaviour would be to show transparency through to the chart background.

But I've modified the TeeChart code to offer the option you describe and have emailed you the test file with example. We'll incorporate the change into the next update release.

Regards,
Marc

Re: Pattern per point

Posted: Fri Jun 12, 2015 7:29 pm
by 17769826
Marc, this works perfectly. Thanks so much!

Jim