Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 913

Summary: Draw chart with transparency
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: CanvasAssignee: Steema Issue Manager <issuemanager>
Status: IN_PROGRESS ---    
Severity: enhancement CC: david
Priority: Normal    
Version: 140512   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-09-08 09:02:02 EDT
PNG format supports true transparency, by specifying an alpha channel, as does the GDI+ bitmap.
Implement a way of specifying a transparency level for the tchart panel, which would be rendered properly to a format that supports transparency.
Comment 1 david berneda 2014-09-17 05:16:41 EDT
This is now possible, setting the Chart1.Color to either "clNone" or:

Chart1.Color := Chart1.Canvas.ColorFrom(0,255);  // 255 = full transparent

or equivalent:

Chart1.Color := $FF000000;

Note: 
Its usually nicer a transparent chart with Chart1.BevelOuter := bvNone.
Also Chart1.Gradient.Visible:=False, otherwise the gradient will cover the whole chart and it will not be transparent.

Note: 
VCL only, for versions prior to Delphi 2009, the project must be rebuilt using the special define "PNGIMAGE".