We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

How to collapse the "measures/filter" header of charts

Answered
Emmanuel asked on June 30, 2023

Hi
With the chart.showLegendButton we can add a button to collapse/expand the legend zone, it's very usefull to get more space for the chart.
We would like to be able to get the same mechanism for the header of the chart (zone containing list of measures and filters).
The option chart.showMeasures can hide the zone but we need to let the end-user the ability to hide/show it as it want.
How can we do that ?
Thanks in advance.

5 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster June 30, 2023

Hello Emmanuel,

Thank you for reaching out to us.

To hide and display the header with the measures and filter controls, you can use the setOptions API call along with the chart.showMeasures and chart.showFilter properties. You are welcome to check the following JSFiddle for reference: https://jsfiddle.net/flexmonster/xhrmgv9b/ 

Please let us know if it works for you. Looking forward to hearing from you.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster July 25, 2023

Hello Emmanuel,

Hope you are doing well.

We were wondering if you had a chance to check the suggested approach. Could you please tell us if it works for you?

Looking forward to hearing your feedback.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster August 1, 2023

Hello Emmanuel,

Hope you are doing great.

Just checking in to ask if you had a chance to try the recommended approach. Please tell us if it works for your use case.

Looking forward to hearing from you.

Kind regards,
Nadia

Public
Emmanuel August 1, 2023

Hello
I have adapted the recommended approach to add an option in the toolbar and it works like a charm.
Thanks for all
Regards
Emmanuel 

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster August 2, 2023

Hello,

Thank you for the feedback.

We are glad to hear that the solution works for you!

As always, feel free to contact us if other questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer