Skip to content

Commit

Permalink
Add more colors and clean some code
Browse files Browse the repository at this point in the history
  • Loading branch information
dlumbrer committed Apr 27, 2018
1 parent d5c1275 commit 969ea32
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions public/kbn_polar_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.controller('KbnPolarVisController', function ($scope, $element, $timeout,
labels.push(bucket[0])
dataParsed.push(bucket[1])
}
var colors = randomColor({ hue: 'random', luminosity: 'bright', count: 54 });
var colors = randomColor({ hue: 'random', luminosity: 'bright', count: 200 });
var dataComplete = {
datasets: [{
data: dataParsed,
Expand All @@ -71,18 +71,6 @@ module.controller('KbnPolarVisController', function ($scope, $element, $timeout,
var canvas = document.getElementById('polar_chart_' + $scope.$id);
var ctx = canvas.getContext('2d');
ctx.clearRect(0, 0, canvas.width, canvas.height);
/*var dataExample = {
datasets: [{
data: [10, 20, 30]
}],
// These labels appear in the legend and in the tooltips when hovering different arcs
labels: [
'Red',
'Yellow',
'Blue'
]
};*/
var options = {
legend: {
display: false
Expand Down

0 comments on commit 969ea32

Please sign in to comment.