Skip to content

Commit 969ea32

Browse files
committed
Add more colors and clean some code
1 parent d5c1275 commit 969ea32

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

public/kbn_polar_controller.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.controller('KbnPolarVisController', function ($scope, $element, $timeout,
5656
labels.push(bucket[0])
5757
dataParsed.push(bucket[1])
5858
}
59-
var colors = randomColor({ hue: 'random', luminosity: 'bright', count: 54 });
59+
var colors = randomColor({ hue: 'random', luminosity: 'bright', count: 200 });
6060
var dataComplete = {
6161
datasets: [{
6262
data: dataParsed,
@@ -71,18 +71,6 @@ module.controller('KbnPolarVisController', function ($scope, $element, $timeout,
7171
var canvas = document.getElementById('polar_chart_' + $scope.$id);
7272
var ctx = canvas.getContext('2d');
7373
ctx.clearRect(0, 0, canvas.width, canvas.height);
74-
/*var dataExample = {
75-
datasets: [{
76-
data: [10, 20, 30]
77-
}],
78-
79-
// These labels appear in the legend and in the tooltips when hovering different arcs
80-
labels: [
81-
'Red',
82-
'Yellow',
83-
'Blue'
84-
]
85-
};*/
8674
var options = {
8775
legend: {
8876
display: false

0 commit comments

Comments
 (0)