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
Toggling Data Label Visibility (Client Side)
Migrateduser
<p>I have implemented a script which reverses the default show/hide functionality of the legend (see below) to hide all except the selected entry. Unfortunately I am having trouble with the other part of my desired functionality, showing/hiding the data labels on the same event (Due to an issue with the relative sizes of the stacked bar elements involved here, if data labels are on all of the time the chart becomes illegible)<br>
<br>
This part in the page:</p>
<blockquote class="ipsBlockquote">
<p><script type="text/javascript"><br>
var lastSeries = "";<br>
function SeriesToggle(thisVal, thisSeries, bookmark)<br>
{<br>
debugger;<br>
var bpagecontents = thisVal.getCurrentPageContent( );<br>
var bchart = bpagecontents.getChartByBookmark(bookmark);<br>
var series = bchart.getClientChart()._chart.series;<br>
for(i = 0; i < series.length; i++)<br>
{<br>
if(lastSeries != "" && lastSeries == thisSeries)<br>
{<br>
bchart.getClientChart( ).setSeriesVisible(series
.name, true);<br>
}<br>
else if(thisSeries != series
.name && series
.visible)<br>
{<br>
bchart.getClientChart( ).setSeriesVisible(series
.name, false);<br>
}<br>
else if(thisSeries == series
.name)<br>
{<br>
bchart.getClientChart( ).setSeriesVisible(series
.name, true);<br>
}<br>
}<br>
if(lastSeries == thisSeries)<br>
{<br>
lastSeries = "";<br>
}<br>
else<br>
{<br>
lastSeries = thisSeries;<br>
}<br>
}<br>
</script></p>
</blockquote>
<p> </p>
<p>This part in the chart as a script invoked upon click events:</p>
<blockquote class="ipsBlockquote">
<p>SeriesToggle( actuate.getViewer("NavigationBar") ,evt.currentTarget.name, "CHART01103");</p>
</blockquote>
<p> </p>
<p>Does anyone know how I can show/hide those labels? All of the results when I google are from 2006-2009 and are discussions of eclipse BIRT functionality where showing/hiding these labels on a click event was a chart creation pull-down menu option.</p>
Find more posts tagged with
Comments
There are no comments yet