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

Parent dimension disappearing when hiding measure directly below

Answered
Accobat Development asked on January 29, 2024

Hello,
 
We are implementing individual measure hiding by adding a hide function to the context menu when right clicking on a measure header.
 
This works perfectly fine by sending the data to the tableSizes object, with a specification for the tuple and measure in question.
 
However, we have run into an issue where, if you hide the measure directly below the title of the column, the title also disappears. This can be confusing.
 
I have prepared this JSfiddle as an example: https://jsfiddle.net/fujqo4aw/
 
In the example, it can be observed that when hiding the "price" measure, the "Germany" label completely disappears. This is highly confusing as it visually leads to the conclusion that France has two different "Price times 2" columns - and that Germany is not part of the data set at all. I do not believe this is the user's intention when hiding a measure.
 
Br
Jonas
 
 

3 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster January 30, 2024

Hello Jonas,

Thank you for reaching out to us.

We are glad that the approach with the tableSizes object works for you!
Yes, you are correct that the title of the column disappears if you hide the first measure in this column. It is an expected behavior since setTableSizes sets the "width": 0 for the whole column, including its name. Therefore, we recommend avoiding hiding the first measure directly below the column name.

You are welcome to contact us in case other questions arise.

Kind regards,
Nadia

Public
Accobat Development January 30, 2024

Hello again,
 
If possible, we would like to make a feature request for this case, i.e. hiding a measure column that is below the title of the column itself, with the label for the column persisting. We understand FlexMonster is a tool for visualizing data and it is unfortunate that a built-in function, used correctly, can lead to significant issues in the visualization.
Of course, it's still an action taken by the user, but it is nonetheless unfortunate that hiding measures specifically is not really hiding measures, but the entire column regardless of what other content is on it.
 
Br
Jonas

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster January 31, 2024

Hello Jonas,

Thank you for the response.

Kindly note that such issues with the visualization are the reason why using the tableSizes object to hide columns is not recommended. However, we appreciate your feedback and have added your feature request to our customers' wishlist. Our team will keep you informed of any updates on the matter.

Feel free to reach out to us in case other questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer