41 lines
967 B
JavaScript
41 lines
967 B
JavaScript
AmCharts.makeChart("chartBar3", {
|
|
"angle": 30,
|
|
"categoryField": "projectName",
|
|
"categoryAxis": {
|
|
"gridPosition": "start",
|
|
"fillAlpha": 0.05,
|
|
"labelsEnabled": false,
|
|
"labelRotation": 0,
|
|
"position": "left"
|
|
},
|
|
"export": {
|
|
"enabled": true
|
|
},
|
|
"depth3D": 20,
|
|
"fontFamily": "Open Sans",
|
|
"height": 269,
|
|
"rotate": false,
|
|
"theme": "light",
|
|
"type": "serial",
|
|
"valueAxes": [{
|
|
"stackType": "regular",
|
|
"title": "Upcoming QTR",
|
|
"unit": "$",
|
|
"unitPosition": "left"
|
|
}]
|
|
});
|
|
$('.chart-input').off().on('input change', function () {
|
|
var property = $(this).data('property');
|
|
var target = chart;
|
|
chart.startDuration = 0;
|
|
|
|
if (property == 'topRadius') {
|
|
target = chart.graphs[0];
|
|
if (this.value == 0) {
|
|
this.value = undefined;
|
|
}
|
|
}
|
|
|
|
target[property] = this.value;
|
|
chart.validateNow();
|
|
}); |