TreeMap Datalabels
See original GitHub issueHello, I’m wondering the best solution to working with datalabels in the treemap. Ideally, I’d like for the labels to be shown in the box if the box is large enough compared to the text length and if not, cut off the text and show ellipsis using text-overflow: ellipsis.
I’m using ResponsiveTreeMapHtml. Would appreciate some help here. An example of text that I’d like “ellipsed”
I’ve tried
label={(val1)=> {return <div className="treemap-datalabels">{val1.name}</div>}}
.treemap-datalabels {
text-overflow: ellipsis !important;
text-align: left;
padding-left: 4px;
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
plotOptions.treemap.dataLabels | highcharts API Reference
plotOptions.treemap.dataLabels. Options for the series data labels, appearing next to each data point. Since v6.2.0, multiple data labels can be applied to ...
Read more >How can I get treemap datalabels to wrap consistently?
I'm making a Highcharts treemap with some rather long datalabels. Sometimes they wrap, sometimes highcharts truncates them with ellipses ...
Read more >Data Label in JavaScript TreeMap control - Syncfusion
Data Labels are used to identify the name of items or groups in the TreeMap component. Data Labels will be shown by specifying...
Read more >Treemap data labels won't edit - Microsoft Community
I am trying to edit a data label on an Excel treemap. Usually on a chart I can double click on a data...
Read more >Treemap: data label exceeds point's boundaries #8160 - GitHub
Expected behaviour Data label shouldn't exceed the boundaries of its point. The overflow should be handled somehow (e.g. by ellipsis crop).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found this solution: you can use the prop label and trim the text that is rendered.
bump