Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.getUserPercentage = function(userCount) {
var chart = c3.generate({
bindto: '#db-chart-user-percent',
data: {
columns: [['Percentage'].concat(userCount.percent)],
type: 'bar',
colors: {
Count: '#ff8083',
}
},
axis: {
x: {
type: 'category',
categories: userCount.tags,
},
rotated: true
},
bar: {