score:1
Accepted answer
As I have mentioned in my comment, I think that you should be able to override getPlotBand method in your code for enabling plotBands with bigger from value than to value:
(function(H) {
H.wrap(H.Axis.prototype, 'init', function(proceed, chart, userOptions) {
this.getPlotBandPath = function(from, to, options) {
var center = this.center,
startAngleRad = this.startAngleRad,
pick = H.pick,
map = H.map,
pInt = H.pInt,
fullRadius = center[2] / 2,
radii = [
pick(options.outerRadius, '100%'),
options.innerRadius,
pick(options.thickness, 10)
],
offset = Math.min(this.offset, 0),
percentRegex = /%$/,
start,
end,
open,
isCircular = this.isCircular, // X axis in a polar chart
ret;
// Polygonal plot bands
if (this.options.gridLineInterpolation === 'polygon') {
ret = this.getPlotLinePath(from).concat(this.getPlotLinePath(to, true));
// Circular grid bands
} else {
// Keep within bounds
from = Math.max(from, this.min);
to = Math.min(to, this.max);
// Plot bands on Y axis (radial axis) - inner and outer radius depend on to and from
if (!isCircular) {
radii[0] = this.translate(from);
radii[1] = this.translate(to);
}
// Convert percentages to pixel values
radii = map(radii, function(radius) {
if (percentRegex.test(radius)) {
radius = (pInt(radius, 10) * fullRadius) / 100;
}
return radius;
});
// Handle full circle
if (options.shape === 'circle' || !isCircular) {
start = -Math.PI / 2;
end = Math.PI * 1.5;
open = true;
} else {
start = startAngleRad + this.translate(from);
end = startAngleRad + this.translate(to);
}
radii[0] -= offset; // #5283
radii[2] -= offset; // #5283
ret = this.chart.renderer.symbols.arc(
this.left + center[0],
this.top + center[1],
radii[0],
radii[0], {
start: start, // Math is for reversed yAxis (#3606)
end: end,
innerR: pick(radii[1], radii[0] - radii[2]),
open: open
}
);
}
return ret;
}
proceed.call(this, chart, userOptions);
});
}(Highcharts))
Live example:
Source: stackoverflow.com
Related Query
- Use of DotNet HighCharts dll to make charts in code behind
- HTML table as data source for highstock charts using highcharts
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- How to change tick and minorTick color in different interval in highcharts gauge charts
- Highcharts: plotbands in gauge charts
- Can't create gauge charts using HighCharts
- Maximum bar width in Highcharts column charts
- Highcharts - Hidden charts don't get re-size properly
- Highcharts charts don't resize properly on window resize
- Highcharts Error #16: charts not showing on the same page
- Highcharts does not resize charts inside tabs
- Highcharts Pie charts get the selected pie id
- Highcharts Solid Gauge Width
- Enable or disable data labels shown in pie charts in Highcharts on click of a button
- getting error#17 from highcharts while using solid gauge from backbone rails
- Adding a series dynamically with HighCharts Stock Charts
- HIghcharts 4 solid gauge max value
- Drill down function in highcharts in case of line charts
- Highcharts Gauge
- Highcharts - multiple charts
- Tooltips getting cutoff in pie charts in highcharts
- Highcharts Synchronized charts display tooltip
- Highcharts Sync charts horizontally
- Dynamically update gauge on highcharts
- Not rendering VU-meter Gauge chart using HighCharts in Durandal
- Highcharts - Color coded legend for solid gauge
- Highcharts pie charts can have url links
- Highcharts tootip for stacked bar charts
- Hiding label guidelines on Highcharts pie charts
- Highcharts Gauge misplaced labels
More Query from same tag
- Highcharts change legend options dynamically
- Highcharts : How can i move the tooltip to external DIV?
- Highcharts change plotBackgroundColor dynamically
- Getting multiple HighCharts from one call
- Highcharts Gantt - data labels in top row are not respecting y offset positioning
- Highstock - Display last chart point in the center of the Y axis
- Highcharts Error: TypeError: undefined is not an object (evaluating 'chart.yAxis')
- How to horizontally align Highcharter objects in Distill article in R Markdown?
- Data from django models not passing to highcharts chart
- Second Y axis in GWT Highcharts on a stock chart?
- Distribute high chart over pages while print in IE9
- How to clear blank below heatmap
- highcharts values from database in asp.net c#
- Highcharts skipping shared tooltip points for large data sets
- How can I show all Timeline Highcharts data without any overlapping?
- highcharts crosshairs wont work
- Custom SVGElement labels loose positioning on zoom
- How do I pass a PHP variable from one file to another multiple times?
- how to adjust distance between to bars in bar chart highchart
- HighCharts zoom in selection event
- Highcharts not working on Heroku environment, works on local environment
- export.highcharts.com bug? Changing order of series.index values not reflected in exported pics
- Highchart angular directive doesn't redraw from dynamic (ajax) data table
- Highcharts null endpoints flush with chart sides
- Highcharts csv export issue
- Highcharts async multi level drill down
- Highcharts gauge do not display
- Prevent from executing previous JavaScript with turbolinks and highcharts //LazyHighCharts
- How do I get the value of a highcharts graph point on mouseover?
- Change color of highcharter r choropleth map