Ensured charts datasets have a unique label

This commit is contained in:
Alejandro Celaya 2020-04-10 12:57:14 +02:00
parent 73256dcf5b
commit ed584d19e5

View file

@ -20,7 +20,7 @@ const generateGraphData = (title, isBarChart, labels, data, highlightedData) =>
datasets: [ datasets: [
{ {
title, title,
label: '', label: highlightedData && 'Non-selected',
data, data,
backgroundColor: isBarChart ? 'rgba(70, 150, 229, 0.4)' : [ backgroundColor: isBarChart ? 'rgba(70, 150, 229, 0.4)' : [
'#97BBCD', '#97BBCD',