score:12
Accepted answer
You should add marginBottom:
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column',
marginRight: 130,
marginBottom: 70 /* HERE */
},
title: {
text: '@Model.Title',
x: -20
}
score:1
Something like this would work:
var height = //get containers original height var new_height = height + (data.length * 10); $("#highcharts-0").css("{height:"+new_height+"}");
score:12
There's an API method to set the size of the chart, found on the chart object and called setSize. chart.setSize(width, height)
see this example on jsfiddle and the reference.
Source: stackoverflow.com
Related Query
- How to increase the height of highchart?
- How do you increase the height of the x-axis labels area on a highchart.js chart?
- How to increase the height of the bands?
- how to set the height of subtitle in highchart without defining height of the container?
- How to adjust the height and width of background color in Highchart
- How to increase and decrease the height of the gridlines in advanced accessible highcharts
- How can I set the height of a highchart dynamically without setting the width?
- How to change the font family of Highchart to Bootstrap css default font family
- How to export a Highchart chart to PDF thanks to a button outside the chart?
- How do you increase the performance of highcharts chart creation and rendering
- Highstock: When legend under the chart has many items, the chart height is small. How can I fix the height?
- How to know information about the clicked bar in highchart column r shiny plot
- How can I do in Highchart to have 1px space between the columns and the y Axis?
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How can I configure the legend with a specific height in highstock?
- Possible to change the height inside the highchart drilldown?
- Is there a way how to dynamically create a plotline in highchart when the value is lower than previous one?
- How to set series-label to false by default and change the color of series label text in highchart
- Highchart how to animate from the xaxis bottom line upward
- How to grab correct highchart number in selectors using Selenium Webdriver with Python with several charts on the page?
- how to display 2 same highcharts without duplicate the code
- Highchart how to enlarge the plotBands in a gauge?
- how to increase Y-Axis height in Highcharts
- How to increase the tickLength of specific x ticks in highcharts
- How to disable or remove the default HighChart loading message?
- How to do In highchart tooltip display the first 100 characters and then say "See more .."?
- How to make two charts using highchart show up in the same line side by side using div
- How can I put the Highchart to the html page
- Vue js + HighChart - how can I make a synchronous axios call before the component get rendered?
- Highcharts increase height of the chart displayed
More Query from same tag
- In highcharts, the data in the legend is overlapping incase of data less than 10000
- High charts error #19
- User Editable Title in Highcharts
- "Guide lines" in Highcharts?
- How to add a second tooltip to highcharts
- Highcharts: highlighting line chart series on legend hover
- How can I make pie chart of high chart libarary unrotatable?
- Rails 4 - Sprockets::FileNotFound in Welcome#index
- Highcharts series.data data type limitations?
- How to drilldown to third level when its data is determined by second's click event?
- Is there a way to scale the custom marker of a high charts scatter chart?
- How to Add Extra Information in Hover/Tooltip
- Update text dynamic via tooltip in Highcharts Piechart
- Click child in sunburst chart, drilldown into parent element
- Pie Chart tooltip thousand seperator and rtl labels doesn't work in highchart
- Fomatting labels on Y-axis in Highcharts with Data from HTML table
- Hide the zero values in a Scatter/Column chart in highcharts
- Laravel: Highchart column with filter by year and classroom
- How to add Modal pop up on nodes of org chart Highcharts
- highstock chart cancel zoom area selection using "Esc"
- HighCharts on hover change dataLabel's font size
- adding extra series on highchart
- Highcharts pie chart list of selected section
- Zoom function breaks the xAxis labels and creates chart gaps when exiting zoom
- Highcharts: min value of y axis on the bottom of chart
- Rounded edges Gauge with Highcharts.js
- Highcharts Solid Gauge width?
- Highcharts Export Server: Polar Chart Ignoring Formatters in Callback
- Highcharts Heatmap - How to get blocks next to each other when separated by more then '1' in value
- Rectangular selection in Highcharts columnrange