Creates a band for a specified value range on the GaugeAxis. Multiple bands can be assigned to a single GaugeAxis.

Example

var chart = AmCharts.makeChart("chartdiv",{
	...
	"axes": [
		{
			...
			"bands": [
				{
					"startValue": 0,
					"endValue": 100
				}
			]
		}
	]
});

Properties

PropertyTypeDefaultDescription
alphaNumberOpacity of band fill. Will use axis.bandAlpha if not set any.
balloonTextStringWhen rolled-over, band will display balloon if you set some text for this property.
colorColorColor of a band.
endValueNumberEnd value of a fill.
gradientRatioArray[Number][]Example: [-0.2, 0, -0.2]. Will make bands to be filled with color gradients. Negative value means the color will be darker than the original, and positive number means the color will be lighter.
idStringUnique id of a band.
innerRadiusNumber/StringInner radius of a band. If not set any, the band will end with the end of minor ticks. Set 0 if you want the band to be drawn to the axis center.
radiusNumber/StringBand radius. If not set any, the band will start with the axis outline.
startValueNumberStart value of a fill.
urlStringGauge band can be clickable and can lead to some page.

Methods

NameParametersReturnsDescription
setEndValue(value)valueSets end value for the band.
setStartValue(value)valueSets start value for the band.

Events

NameEvent objectDescription
clickBand{type: "clickBand", dataItem: GaugeBand, chart: Object, event: MouseEvent}Dispatched when user clicks on a band.
rollOutBand{type: "rollOutBand", dataItem: GaugeBand, chart: Object, event: MouseEvent}Dispatched when user rolls-out of the band.
rollOverBand{type: "rollOverBand", dataItem: GaugeBand, chart: Object, event: MouseEvent}Dispatched when user rolls-over the band.