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
Dynamic chart title using data set
Migrateduser
Hello, i'm trying to get data from an data set to make an dynamic title in a chart.<br />
<br />
Today my dynamic chart title is done this way:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
function beforeGeneration( chart, icsc ) {
var title = "Problema - " +
icsc.getExternalContext().getScriptable().getParameterValue("nmAgrupOrigProb") + " por Per?odo";
chart.getTitle().getLabel().getCaption().setValue(decodeURI(title));
}
</pre>
<br />
There is something like this in birt?<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
var cdProblemRow = icsc.getExternalContext().getDataSet("myDataSet").getRow("CDPROBLEM");
chart.getTitle().getLabel().getCaption().setValue(decodeURI(cdProblemRow));
</pre>
Thanks.
Find more posts tagged with
Comments
There are no comments yet