score:1
Accepted answer
Making heatmap to behave like HTML table (columns adjust their width to their content) is rather a difficult process - it's explained in my comment under the OP's question.
Here're the steps to make it (I don't guarantee that I'll work):
- Make each column a separate series (
colsize
can be applied to a series only and we need a specificcolsize
for every column) - Find the longest label for every column. They need to be generated first so it has to be done in
chart.load
event. Every point has a reference to its data label (SVG element) - you can findwidth
property there. - Use
xAxis[0].toValue
function to determine thecolsize
of each column. - Find new x values for every column - it depends on the values of spans of previous columns. Update all points.
- Categories functionality is based on fixed value of tick interval and it won't work for us anymore.
xAxis.tickPositions
has to be used to place the ticks so they mach the columns.xAxis.labels.formatter
can be used for finding the proper names for every x axis label.
Source: stackoverflow.com
Related Query
- Highcharts heatmap column width based on content size
- HighCharts - Make labels appear dynamically based on column size
- Highcharts Heatmap Set Column Width
- Maximum bar width in Highcharts column charts
- Column width in Highcharts when combined with spline
- Highcharts spans beyond bootstrap column width when implemented as an angular directive
- Change Datalabel Color, Rotation and Align values based on Column value in highcharts
- How to get current width of highcharts column
- set width of column in percentage in highcharts
- Updating Highcharts column chart based on drop down-menu
- Set different width for each column in highcharts
- Highcharts chart width to dispay size dynamically
- Highcharts - Column width not responsive
- Issue with last column width in Highcharts
- HIGHCHARTS - Value of Columns Based on previous Column Value
- HIghcharts - chart width not the size of the parent container
- Highcharts Dynamic Column color based on data comparison
- How can set a width to a single column in Highcharts
- Highcharts - change group padding and column width on category axis
- Column based Highchart drilldown series assign color code to each column
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- rCharts : Highcharts column with color based on value
- Dynamic column based highcharts feeding data with jquery and php
- Highcharts - Space between bars based on the bars' width
- Highcharts column how to move series name to the title position with bigger text size
- Set HighCharts marginTop dynamically based on mobile device screen size
- Set Bootstrap Panel Size 100% + Highcharts content
- Highcharts - set column width dynamically
- Dynamically feeding the column based highcharts from json assosiative array in jquery?
- Highcharts Redrawing images based off of chart width
More Query from same tag
- Highcharts navigator not working with data set
- Highcharts.js combined bar/line chart with timespan bars
- Highcharts stacked area - update tooltip only after exact area mouse over
- Highcharts prevent xAxis Labels hidden
- react-highcharts alignThreshold
- Remove Zero From the HIGHCHART
- Adding narrative to pie chart (highcharts)
- select distinct name and combine an objects property in a List<T>
- Highcharts navigator mouse over not working
- Content besides tooltip are visible
- How to allow multiple point selections in Highcharts donut chart?
- How to select the drillup button using jquery, so I can do an on click event?
- Highcharts - Space between bars based on the bars' width
- Start scrollbar at the left for Highstock
- Highcharts won't slant data on a bar chart
- HighCharts Angular - Setting chart data from API
- Highcharts not draw with JSON format
- How to display line break for irregular time series with highcharts
- Putting the Z-Coordinate in the Highcharts Tooltip
- Manually load and unload external javascript in AngularJS
- Highcharts - Synchronized heat maps
- refresh data using scriptblock vb.net
- Datepicker jquery-ui for angular highcharts-ng rangeSelector
- hPlot pie chart - show percentage in tooltip instead of absolute values
- Highcharts, How to show datatable when export PDF and not show pdf when normal
- Synchronize multiple chart's x-axis
- what should be the initial dataset from millions of data points for stock line highcharts
- Highchart, One column as background for another
- Highcharts - Sankey chart not displaying all the data when series font increased
- How to invoke an controller action in ember.js