score:5
I thought maybe the maxHeight
property would do it but couldn't get the height to change.
I thought I would mess around with the y
property and found a scenario that seems to work pretty good. You can tweak it as you see fit.
legend:{
align: 'right',
verticalAlign:'middle',
width: 200,
itemWidth: 100,
y: 85
},
score:0
It seems Highcharts triggers the navigation when the calculated legend height exceeds certain value. So you can increase the height of your chart if it's the option.
<div id="container" style="min-width: 310px; height: 450px; margin: 0 auto"></div>
score:1
Highcharts calculates the height of the legend depending on legend items inside it. if this overflows the chart height then that may cause the issue.
in legend you can restrict the height using the maxHeight, but if the legend height overflows the maxHeight navigation controls appear. so better calculate the required height by yourself and give it to maxHeight to avoid navigation controls,
maxHeight: (no. of legend Items or series count) * line height of each item/2
hope this may work.
Source: stackoverflow.com
Related Query
- Highcharts set legend height
- highcharts legend items align to the left when width is set
- How to color series legend in highcharts when colorbypoint is set to true
- Highcharts, set legend height dynamically
- Set custom legend item symbol (or icon) in HIghcharts
- Highcharts server side image generation, how to set up legend labelFormatter in callback argument
- Highcharts problems: variable legend height
- Set equal height for funnel highcharts
- Change the legend in highcharts heatmap to show instead of a color bar, a set of fixed icons with hide and show on click
- Highcharts Gantt - Set max height and scrollbar on yAxis
- highcharts chart height apart from legend
- dynamically set height of chart when printing Highcharts
- Highcharts Angular - How to set chart width and height with percentages?
- Highcharts pie chart height auto sized including legend
- Set custom symbol to HighCharts legend
- Highcharts - how to set line height in multiline annotations labels in styled mode
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- Set Additional Data to highcharts series
- HighCharts Hide Series Name from the Legend
- How to set Highcharts chart maximum yAxis value
- set different colors for each column in highcharts
- How to modify highcharts legend item click event?
- Hiding a Highcharts series without using the legend
- Disable-Click on Legend in HighCharts Column Graph
- Set highcharts y-axis min value to 0, unless there is negative data
- how to set the interval of points on Y - Axis highcharts
- Resize height with Highcharts
- Highcharts set x-axis categories
- Highcharts - Change legend index order
- Highcharts legend font sizes
More Query from same tag
- Is there a specific way to add data points from fetch() after a chart has been built?
- Highcharts x-axis not formatting right when showing only 1 datapoint
- Cannot Use Two Splines in Highchart
- Responsive meteogram (icons) highcharts
- How to disable range selector from highstocks charts
- Dynamically add data to series in Highcharts
- Pass data in form of variable -Highcharts
- javascript highcharts builder function
- How do I rotate the legend in Highcharts?
- Highcharts:Remove the color area below the 2 series
- setting the categories using ajax in highcharts
- Implement chartit in Django 1.6 with Python 2.7 : TypeError: 'NoneType' has no attribute __getitem__ - Need more information
- how to configure highmaps of highcharts in ruby on rails?
- Highcharts Column Range - How to render series data stored in PHP variables?
- Highcharts on Rails 3
- how to set legend or colors on the charts consistent?
- HighChart irrgular Mapping
- Subtitle and title at bottom of highcharts
- Produce highcharts multiple line chart from JSON / MySQL data
- Modify the size of the tickPositions in HighCharts
- DotNet.Highcharts not working with Visual Studio 2010
- changing intervals in X and Y axis in high chart (line chart)
- Highcharts (highstocks) tooltip does not work on latest firefox 64.0 with useHTML=true
- Highcharts Display Xaxis plot line
- how to make custom directive or pass variable in directive in angular js
- Incorrectly displayed plot band icon in Highcharts
- Highstock chart doesn't show after it has been cleared
- HTML table as data source for highstock charts using highcharts
- groupPadding for stacking series in Highcharts
- Getting Custom GeoJSON File To Work In HighMaps