Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Boxplot - based on stock chart - change location script
Migrateduser
<p>Hi,</p><p> </p><p>I need to have boxplots in my Birt report, so I made it as a stockchart (my query already reteurns all required quartiles). Unfortunately, it is impossible to show a median in a simple stockchart. I tried to manage it by creating second data series which shows only the median. </p><p>And now the problem: how to replace "the candles" of the second data series. I want them to overlap the first series.
I suppose that I need some java.script. I tried with sth like that (see script below), but it completely doesn't work (and I cannot fix it because I don't know java at all).</p><p> </p><p>I enclosed printscreen of my graph.</p><p> </p><p>I will be very greatefull if someone could give me some advices how to change location of the second data series. </p><p> </p><p>Thanks!!!</p><p>Marta</p><p> </p><p> </p><div>function afterDataSetFilled( series, dataSet, icsc )</div><div>{</div><div> if( series.getSeriesIdentifier() == "Series2" ){</div><div> halfseries++;</div><div> }</div><div>}</div><div> </div><div>halfseries=0;</div><div>currseries=0;</div><div>function beforeDrawSeries( series, isr, icsc )</div><div>{</div><div> if( isr.getSeriesRenderingHints() != null ){</div><div> var dpharray = isr.getSeriesRenderingHints().getDataPoints();</div><div> for( j=0;j<dpharray.length;j++){</div><div> var xval = dpharray[j].getLocation().getX();</div><div> if( currseries <= halfseries){</div><div> dpharray[j].getLocation().setX(xval-20);</div><div> }</div><div> </div><div> }</div><div> }</div><div> currseries++;</div><div>}</div><div> </div><div> </div>
Find more posts tagged with
Comments
There are no comments yet