EnVisageOnline/Main/Source/EnVisage/Scripts/Dashboard/pv.chart.bar1.js

43 lines
992 B
JavaScript

AmCharts.makeChart("chartBar1", {
"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": "Current QTR",
"unit": "$",
"unitPosition": "left"
}]
});
//TODO: what is it?
$('.chart-input').off().on('input change', function () {
var property = jQuery(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();
});