Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a feature to set a minimum width for treemap block #7891

Closed
kundansonu opened this issue Feb 20, 2018 · 8 comments
Closed

Need a feature to set a minimum width for treemap block #7891

kundansonu opened this issue Feb 20, 2018 · 8 comments
Labels
Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. Type: Enhancement

Comments

@kundansonu
Copy link

kundansonu commented Feb 20, 2018

Expected behaviour

There should be an option to provide a minimum block size

Actual behaviour

For a large dataset with few of records having a smaller value the block plotted on treemap is too small to interact.
image

Live demo with steps to reproduce

Please click on Europe and check for switzerland
I have changed the large tree map example and changed the value of Switzerland to 1
http://fiddle.jshell.net/s41m016L/

Product version

Highcharts JS v6.0.7

Affected browser(s)

Google Chrome, Firefox

@pawelfus
Copy link
Contributor

Hi @kundansonu

Thank you for your suggestion.

@jon-a-nygaard FYI

@TorsteinHonsi
Copy link
Collaborator

This is thematically related to the column minPointLength option. It also comes with the same logical problems - what happens if many of these oversized items are positioned next to each other?

@vadimpopa
Copy link

vadimpopa commented Mar 28, 2018

This problem is in older versions as well. Any idea how this could be fixed in current versions, a temporary fix ?

Also there may be cases when displaying 0 values is needed as well.

@vadimpopa
Copy link

Checked the forum and it seems there have been lots of requests for this feature since 2016 at least. And if I'm not wrong only fix/solution is to write a new algorithm based on the one we've chosen.

@vadimpopa
Copy link

Found a way, not ideal but works as a temporary fix. It will show 0 value boxes as well (all of them will have the 0.5 value size) and normalizes a bit the values with Math.log (for less extreme data could use Math.pow(val, 0.n)).

http://jsfiddle.net/sgm86hyd/18/

@stale
Copy link

stale bot commented Sep 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. label Sep 26, 2019
@stale stale bot closed this as completed Oct 3, 2019
@ajankit85
Copy link

I am facing the same issue. Is there any resolution to this problem?

@sebastianbochan
Copy link
Contributor

Hi @ajankit85,
How about workaround from here: http://jsfiddle.net/sgm86hyd/18/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. Type: Enhancement
Projects
None yet
Development

No branches or pull requests

6 participants