Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
defaults.global.legend.display = false;
defaults.global.colors = [
'#97BBCD', // blue
'#DCDCDC', // light grey
'#F7464A', // red
'#46BFBD', // green
'#FDB45C', // yellow
'#949FB1', // grey
'#4D5360' // dark grey
];
this.convertedColors = defaults.global.colors.map(this.convertColor);
// -- from angular-chart.js
this.data = {
labels: [],
datasets: [merge({}, this.convertedColors[0], {
label: 'Number of votes',
data: []
})]
};
this.options = {
scales: {
xAxes: [{
gridLines: {
display: false
},
scaleLabel: {
display: true,
labelString: 'Number of votes'
}
}]
}