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
Hide Flash Chart Legend
Migrateduser
Hi,<br />
<br />
I am using flash chart with the below code to change the series name based on the global persistant variable. I would like to hide the fourth series LEGEND name using the global persistant variable. <br />
<br />
Any suggestions?<br />
<br />
Thanks<br />
UY<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>function beforeRendering( flashChart, fcsc ){
chart = flashChart.getChart();
xAxis = chart.getBaseAxes()[0];
yAxis = chart.getOrthogonalAxes( xAxis, true)[0];
ySerieDef = yAxis.getSeriesDefinitions().get(0);
runSeries = ySerieDef.getRunTimeSeries();
var series = runSeries.get(0);
if (fcsc.getExternalContext().getScriptable().getPersistentGlobalVariable("y_SeriesTitle") == 'Test1' ){
series.setSeriesIdentifier("Difference"); }
else if( fcsc.getExternalContext().getScriptable().getPersistentGlobalVariable("y_SeriesTitle") == 'Test2' ){
series.setSeriesIdentifier("Relative"); }}
</pre>
Find more posts tagged with
Comments
There are no comments yet