Home
Designing Analytics Reports
Highlight chart depending on value in the row
Migrateduser
<p>Hello,</p>
<p> </p>
<p>I know how I can highlight chart depending on a value in same row on chart. For example:</p>
<pre class="_prettyXprint _lang-js">
function beforeDrawDataPoint(dph, fill, icsc)
{
importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
val = dph.getOrthogonalValue();
if( fill.getClass().isAssignableFrom(ColorDefinitionImpl)){
if (val >= 500 && val < 1000){
fill.set(255, 255, 0);
}
if (val >= 1000){
fill.set(255, 0, 0);
}
}
}
</pre>
<p>How I can highlight chart if a value what I want use is not use in chart, but it is value from the same data binding? For example, I use row["A"] to X and row["B"] to Y and I also has row["C"] what I don't use to chart. How I can highlight X to yellow if value in row["C"] will between 5 and 7 and X to red if value in row["C"] will greater or equal then 7?</p>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet