Home
Analytics
Dynamic color gradient in BIRT
BIRT User
<p>Hi BIRT Guru's,</p>
<p>I want to create a dynamic liner color gradient in BIRT which is supported in all formats(HTML,PDF,PPT). The start and end color would be dynamic based on user inputs so i cannot use a image.</p>
<p>I have tried it using 'canvas' tag however its not supporting in pdf and ppt format (See attached file).</p>
<p> </p>
<p>Any help would be appreciated.</p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
pricher
<p>Hi,</p>
<p> </p>
<p>In iHub 3 and above, you can use a Custom Visualization component to draw a canvas element that can export to PDF and PPT (and DOCX and XLSX). Simply include the code you already have where you define the <canvas> element into the HTML section of the Custom Visualization component.</p>
<p> </p>
<p>Modified sample rptdesign attached.</p>
<p> </p>
<p>Hope this helps,</p>
<p> </p>
<p>P.</p>
BIRT User
<p>Thanks Pricher!!!</p>
JayanthiS
<p>Hi Pricher,</p>
<p> </p>
<p>The attached example for the gradient is working fine, how do I use the dynamic colors in <cavas> element in the custom visualization component?</p>
pricher
<p>Hi,</p>
<p> </p>
<p>The color values from the two report parameters are bound to the custom visualization component:</p>
<p> </p>
<p>
JayanthiS
<p>Thanks Pricher, it works fine..</p>