From 969ea32f95c518f1fcbdc792efa6126c0187dc0d Mon Sep 17 00:00:00 2001 From: David Moreno Lumbreras Date: Fri, 27 Apr 2018 10:29:46 +0200 Subject: [PATCH] Add more colors and clean some code --- public/kbn_polar_controller.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/public/kbn_polar_controller.js b/public/kbn_polar_controller.js index b4bf9d8..553037f 100644 --- a/public/kbn_polar_controller.js +++ b/public/kbn_polar_controller.js @@ -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, @@ -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