Hi, I need to show a pattern whose color is different for each point. Can this be done?
Thanks.
Pattern per point
Re: Pattern per point
PS. I should have said that this is a Bar series.
Re: Pattern per point
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):
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
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";
Regards,
Marc
Steema Support
Re: Pattern per point
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
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
Steema Support
Re: Pattern per point
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.
Thanks, Jim
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).Here I have changed the default .jpg image to a .png image that supports transparency
Thanks, Jim
Re: Pattern per point
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
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
Steema Support
Re: Pattern per point
Marc, this works perfectly. Thanks so much!
Jim
Jim