Hello, I'm using the latest (?) v1.7 July 2014 teechart.js. I believe this includes a fix to http://bugs.teechart.net/show_bug.cgi?id=831, involving patterns in bar series. While the image does appear, it is stretched to the bar rectangle. An image needs to be tiled to serve as a pattern. Is this something that can be done?
Also, in VCL, a two color, B&W pattern displays with the series colors. If this is not possible, I can create a pattern per-color, though this is obviously extra work.
I can provide a sample if you need it.
Thanks.
Bar patterns
Re: Bar patterns
Hello,
http://bugs.teechart.net/show_bug.cgi?id=885
I see. I've reopened the ticket and added a comment to it so it can be revised.Jim Green wrote:I'm using the latest (?) v1.7 July 2014 teechart.js. I believe this includes a fix to http://bugs.teechart.net/show_bug.cgi?id=831, involving patterns in bar series. While the image does appear, it is stretched to the bar rectangle. An image needs to be tiled to serve as a pattern. Is this something that can be done?
I've added a new ticket to the public tracker:Jim Green wrote:Also, in VCL, a two color, B&W pattern displays with the series colors. If this is not possible, I can create a pattern per-color, though this is obviously extra work.
http://bugs.teechart.net/show_bug.cgi?id=885
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Bar patterns
Thanks.
FWIW, I added tiling by adding a "style" property to ChartImage and using createPattern/fill when style is "repeat" (instead of drawImage). Source attached.
Note that it also allows repeat-x, repeat-y and no-repeat, though only "repeat" works. Maybe you'll spot why - I'm a complete noob at Canvas drawing.
(I also disabled "hassymbol" in Legend to allow symbols to show in more cases.)
Jim.
FWIW, I added tiling by adding a "style" property to ChartImage and using createPattern/fill when style is "repeat" (instead of drawImage). Source attached.
Note that it also allows repeat-x, repeat-y and no-repeat, though only "repeat" works. Maybe you'll spot why - I'm a complete noob at Canvas drawing.
(I also disabled "hassymbol" in Legend to allow symbols to show in more cases.)
Jim.
Re: Bar patterns
Hi Jim,
I've removed the attachment because it contained the source code of TeeChart.
However, I downloaded it first and I'll post it in the ticket B831 as a private comment so it can be studied for implementation in next releases.
I've removed the attachment because it contained the source code of TeeChart.
However, I downloaded it first and I'll post it in the ticket B831 as a private comment so it can be studied for implementation in next releases.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Bar patterns
Sorry! Should have thought of that...
Re: Bar patterns
Hi Jim,
And thanks for sharing the fix proposal!
No problem!Jim Green wrote:Sorry! Should have thought of that...
And thanks for sharing the fix proposal!
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |