score:0
There is no height setting properties in the documentation I see. You can use the same code you have used in the question to set the height of the rect
, but I saw your svg is going beyond the bounds. So you will need to manually set the height attribute of the svg being drawn also with the script below to let the increased height of the legend to be acommodated inside the svg.
$('.highcharts-container svg').height(heightToIncludeTheIncrease);
I just tried with the developer tools to check if it works. So in conslusion, you will need to increase the containers to acommodate the increased height, starting from the parents of the rect
.
score:2
Highcharts provides a maxLimit to the legendHeight.
legend: {
maxHeight: 475
}
But if the count of items in it is lesser the legend shrinks but the legend wont go beyond the maxHeight. if at all the items are more the navigator starts for the legend.
API ref: http://api.highcharts.com/highstock#legend.maxHeight
I hope this will be of some use for you
Source: stackoverflow.com
Related Query
- How can I configure the legend with a specific height in highstock?
- Highstock: When legend under the chart has many items, the chart height is small. How can I fix the height?
- How can i get the json data with the specific between Year?
- How to hide series via the legend in highstock ?
- How can I change the scale of the legend in highcharter in R?
- How can I hide ALL series with the same ID with a button on highcharts? (line graph)
- How can I get the navigator selection from a Highstock chart?
- With HighCharts, how can I have the same tooltip formatter as my y axis
- How can you have more than 10 colors represented in the graph and legend in highcharts?
- How can I make milestone lines with a GANTT chart using the highcharts library?
- How can I have both a legend and data labels, with different labels, in Highcharts?
- How can I change the color of legend points?
- How to add one more value against at the end of each bar with a legend
- How can I add a text link just below the legend box in highcharts
- Highstock double yAxis - can the legend be split?
- How can I set the legend symbol color for a series when using colorByPoint?
- How can I display crosshair labels on top of the chart with Highcharts
- How to change the theme of a Highstock graph with a button?
- Highstock - How can i display the open, high, low, close in the line or area charts tooltip
- How can I capture all points belonging to the same series with the same xAxis value without a loop?
- Strange character in the Highstock source code
- How can I remove the legend symbol for a SINGLE legend in Highcharts?
- In highcharts how can I provide data with values x, y, title so that I can put the title in the tooltip?
- How can I make HighCharts 4.2.5 with boost.js invoke the tooltip formatter?
- How can i use Highstock rangeSelector get the yAxis Max_value and Min_Value
- How can hide the icon legend
- How can I create a specific Json output for use with Highcharts?
- How can a text box be bound dynamically to the right border of a chart created with Highcharts?
- How to create legend for Plotlines with Highstock of Highcharts?
- How can I increase size icon of the legend
More Query from same tag
- Jasper report color issue with Highcharts's plotOptions.fillColor
- JavaScript PHP HighChart transform a PHP array to a javascript array
- Highcharts - Pie chart with negative values
- How to show plotlines on highstock when its set much higher than the data series?
- Using a flask variable as data source for highcharts
- vaadin's Invient chart max data size
- Highcharts how to use column title as X axis and not as Legend
- Pass data in np.dnarray to Highcharts
- HIghCharts bar chart renders columns on top of each other
- Structuring data to be sent to HighCharts in view
- R efficient Drilldown chart with loop using Highchart
- Sending a value from html to controller in angularjs. Issue with scope?
- HighChart : generate onclick() by for loop to addSeries
- Two columns with two legend items in highchars.js
- Highcharts - Pie inner circle size
- Highmaps: Wrap fillSetter for colorAxis
- Misaligned ticks on dual X axis in Highstock
- Generate HighChart between two dates using Ajax
- Highcharts -- Dynamically apply "halo" effect to points without triggering hover event
- HighCharts : Xaxis lables misplaced
- How to get proper stack labels with 'datetime' axis?
- Use different object property names for x and y axes
- How to set PointIntervals per month in HighChart
- Half node in sankey Highchart
- xAxis event do not call the callback function
- JSON data not showing in highstock Candlestick chart using PHP & MYSQL
- How to show equally spaced axis for datetime for billing cycle related data on highcharts
- HighCharts - Angular 7 - Sunburst drillup event not triggering
- Highcharts populate the categories with live data from MySQL
- How to render image on Yaxis in highcharts