new UWA.Controls.StackedColumn(options)
Displays a horizontal bar-type chart.
Available Events
Event | Description |
---|---|
onClick |
Fired when item is clicked (params: itemName, item, itemElement) |
onMouseOver |
Fired when mouse is over item (params: itemName, item, itemElement) |
onMouseOut |
Fired when mouse goes out of item (params: itemName, item, itemElement) |
Example
var myControl = new UWA.Controls.StackedColumn({
data: {
option_a: {text: 'a', background: 'red', value: 10},
option_bb: {text: 'bb', background: 'blue', value: 30},
option_ccc: {text: 'ccc', background: 'green', value: 25},
option_dddd: {text: 'dddd', background: 'yellow', value: 12}
},
hoverColors:{
'red': 'darkRed',
'blue': 'darkBlue',
'green': 'darkGreen',
'yellow': 'gold'
}
});
myControl.inject(myControlContainer);
Parameters
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Options hash or a option/value pair. Properties
|
Extends
- UWA.Controls.Segmented
Index
Members
Members
-
<protected> defaultOptions
-
Properties:
Name Type Description defaultOptions
Object The default controls options.