X-Axis Interactivity [message #1833557] |
Fri, 16 October 2020 20:17  |
Lady bug Messages: 2 Registered: October 2020 |
Junior Member |
|
|
Hi,
Is it possible to send value of X-Axis label in Bar Chart as a parameter for drill down, on mouse click event? For example, I have product types listed on X-axis. Values are product1, product2, product3, product4. I am trying to pass value "product3" as parameter when I click on that label itself.
I tried to define Interactivity for X-Axis, but I was not able to send actual label value. When I try to pass row["productType"], value product4 is always picked up.
Also, I tried to add script in beforeDrawAxisLabel, but could see that label.setAction() method is not available- I am getting "Cannot find function setAction in object org.eclipse.birt.chart.model.component.impl.LabelImpl".
I was trying to define drillthrough target, and to assign it to label action.
|
|
|
|
Re: X-Axis Interactivity [message #1833639 is a reply to message #1833620] |
Tue, 20 October 2020 08:58   |
Lady bug Messages: 2 Registered: October 2020 |
Junior Member |
|
|
Yes, I am using open source Birt and I am able to define parameters, but I am not able to send value of x label as parameter.
I tried with row["productType"], but it always takes last label value on x axis (in my example product 4). In expression builder 'Available Column Bindings' option is not available, same option is available in Value (Y) Series Interactivity, screenshot is attached.
[Updated on: Tue, 20 October 2020 09:03] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01386 seconds