Use doublequote strings and add comment

Signed-off-by: Mark Drobnak <mark.drobnak@gmail.com>
This commit is contained in:
Mark Drobnak
2018-08-16 17:47:05 -04:00
parent 6af8c76c3f
commit d7b328e103

View File

@@ -463,9 +463,10 @@ function updateClientsOverTime() {
{
clientsChart.data.datasets.push({
data: [],
// If we ran out of colors, make a random one
backgroundColor: i < colors.length
? colors[i]
: '#' + parseInt("" + Math.random() * 0xffffff, 10).toString(16).padStart(6, "0"),
: "#" + parseInt("" + Math.random() * 0xffffff, 10).toString(16).padStart(6, "0"),
pointRadius: 0,
pointHitRadius: 5,
pointHoverRadius: 5,