Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Filter Bar Chart
suni
Hello,
I have a question,I created a BAR chart, which displays Quanitity ordered of each product in a month.. I would like to use java script event handler to filter the chart based on the product name passed.. How could I do that???
Thank You,
Find more posts tagged with
Comments
Virgil Dodson
Hi suni,<br />
<br />
Are you trying to control the filtering of the chart when the report executes?... or when the user is viewing the report?<br />
<br />
If during report execution, then there are ways to do this without going into JavaScript. The user can select which product they want based on a report parameter... That parameter value can then be passed into the query as part of a where clause so that more data is not pulled that is not needed.... or if you are not using a database, then you can still apply a filter on the chart (in the data tab) that is based on the passed in parameter. Enclosed is an example of this approach.<br />
<br />
If you need this capability while the user is looking at the report... then you can either re-run the report from a hyperlink with the new parameter... or you can look at the JavaScript API provided by Actuate that allows you to pass filters from the browser through JavaScript and only refresh the chart. You can see this working at <a class='bbc_url' href='
http://demo.birt-exchange.com/jsapi/slider/slider.html'>JSAPI
JavaScript Slider Example</a>
suni
Hi,
i installed Actuate Birt. Also, i don't want do filter in run-time.
I attached the chart that i created so that it will be clear. If you see, I grouped the chart by product code, I want to use javascript event handler to filter any product code.
Thank You,
Suni