Home
Analytics
Need to populate a chart in which red color bar refers to negative values where as green color bar r
Abdur Rahmaan
<p>Hi All,</p><p> </p><p>I am trying to generate a bar chart in BIRT designer, where I have to show a bar chart with positive and negative values. Positive values should be in green colour and negative values should be in red color. Data will be dynamic based on the parameter selection. How to achieve this. Can anyone assist me on this issue. Thanks in advance.</p>
Find more posts tagged with
Comments
micajblock
<p>Take a look at these, as they should give you some ideas</p><p> </p><p><a data-ipb='nomediaparse' href='
http://www.birt-exchange.org/devshare/_/designing-birt-reports/819-parameterdriven-bar-chart-formatting'>http://www.birt-exchange.org/devshare/_/designing-birt-reports/819-parameterdriven-bar-chart-formatting</a></p><p> </p><p><a
data-ipb='nomediaparse' href='
http://www.birt-exchange.org/devshare/_/designing-birt-reports/1401-change-bar-colors-for-staced-percent-chart'>http://www.birt-exchange.org/devshare/_/designing-birt-reports/1401-change-bar-colors-for-staced-percent-chart</a></p>
;
Abdur Rahmaan
<p>Thanks for your assistance. I have gone through the links and there was no answer for my issue. Still I am identifying the solution. Can anyone suggest me to solve the issue.</p>
GLO_FR
<p>Hi Abdur,</p><p>can you attach a screenshot of the chart you want to create. In fact I don't understand your needs or what should the end result looks like.</p><p> </p><p>Maybe a solution is to split your data in 2 series : one with positive values and the other one with negative values.</p><p>Than you can create a bar chart or a stacked bar chart and use a different color for each serie.</p>
Abdur Rahmaan
<p>Thanks for your great idea. I have written SQL query and split the data column into positive and negative values, then I created two series with two different colors Thanks man I got it.</p>
micajblock
<p>You can also do this in script. What version of BIRT are you using?</p>
Abdur Rahmaan
<p>I'm using </p><div>Version: 4.2.2</div><div>Provide me the script and guide me where I have to paste the script. Thanks</div>
micajblock
<p>I posted a simple example here:</p><p> </p><p><a data-ipb='nomediaparse' href='
http://www.birt-exchange.org/devshare/_/designing-birt-reports/change-bar-color-based-on-value-r1556'>http://www.birt-exchange.org/devshare/_/designing-birt-reports/change-bar-color-based-on-value-r1556</a></p>
;