score:1
Accepted answer
Well, threshold should work. Just you need to set
endOnTick: false
maxPadding: 0
threshold: max_value_in_data
See: http://jsfiddle.net/3bQne/1076/
Code:
var data = [3, 4, 3, 5, 4, 10, 12];
Array.prototype.max = function() {
return Math.max.apply(null, this);
}
$('#container').highcharts({
chart: {
type: 'areaspline'
},
yAxis: {
endOnTick: false,
maxPadding: 0
},
plotOptions: {
areaspline: {
threshold: data.max(),
}
},
series: [{
data: data,
negativeFillColor: 'rgba(255, 0, 0, 0.5)'
}]
});
Source: stackoverflow.com
Related Query
- Negative Fill color in AreaSpline Graph
- Negative color with area color fill and yAxis
- Highcharts column range change color for negative numbers
- Highcharts - Column With Negative Values - Column Color
- How to change area graph color above certain value in Highcharts
- Highcharts - areaspline with negative values, area should be always at the bottom
- Highcharts - Negative color with 'line' type polar chart
- Highcharts: Column Chart Select State Fill Color
- Heat Map With Red Color Range For Negative Values And Green Color Range For Positive Values
- How to make legend color show up in Highcharts for a line graph under certain conditions?
- How to change the color of highcharts series graph to black & white during downloading it as an image?
- Change color code on colum, depending on data value (highchartJS)
- How to have a border around highlighted countries but no change in fill color in a highmaps map?
- Issue on Setting Fill Color and Opacity in Highchart.js Spider Web
- Highcharts Negative Values Column Graph Bottom Radius
- Adding a pattern fill to a black and white column graph in Highcharter
- Align Bar Graph with Negative Stack
- Strange character in the Highstock source code
- How to manage event through a fill color with highchart?
- highstock: how to change color in areaspline when series intersect sma
- Fill area beneath scatter points with color in Highcharts 3d scatter plot
- highchart set fill color
- How to modify Negative Axis Bar Graph in Highcharts?
- HighCharts negative color for dataLabels
- Column based Highchart drilldown series assign color code to each column
- How to add fill color in highcharts data series
- Highcharts: areasplinerange with fill color that takes account of direction of range
- The graph disappear after change marker style and then change the line color
- How to create a drilleable bar graph in jsp page using open source charts API
- Bug in Highcharts where negative numbers in data seem to cause bug with graph drawing
More Query from same tag
- Highchart , how to remove the margins, inside the chart? Creating a 100% zoom?
- Same Highchart in different tabs not loading - Only first Tab loading
- Remove tooltip from level 2 of treemap (using highcharts)
- Highcharts - export to base64
- create R highchart table with sparkline
- how to handle mouse over event in legend in highcharts?
- Highchart spider web chart
- Print datatable and Chart using Typescript
- Bar chart with wrong bar height
- Why is plotLine after redrawing a series in Highcharts not displayed anymore?
- HighCharts uncaught exception
- php to highchart, how to send the right array?
- Highcharts - How to remove drilldown link on empty items?
- Highcharts heatmap without fixed non-temporal axis
- Manipulating array to add through setData on highcharts
- Highcharts duplicating Legend Tags
- highcharts date not displayed properly on x axis
- Highcharts duplicated code
- highcharts SVG drawing mousemove
- Pass custom date object from jalali-moment library to time.Date option
- How to fill dynamic json value in drill down highchart
- Highcharts - Drill up event to toggle the displayed information back
- Highcharts - line chart dataLabels on every other point?
- Highchart Data from HTML table with <input> values
- Highcharts Pie chart return slice animation on mouseout
- Highcharts js different when installed with bower
- Highcharts Line Chart doesn't have connecting lines
- how to get a dynamically created graph in highchart using json data
- set the background color for column group graphs in highcharts
- How does HttpContext.Current.Response.Binarywrite work?