Skip to content

Commit

Permalink
Fixing charts labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
hguerra committed Oct 29, 2020
1 parent 558d03b commit 184c6f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Report/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 78,10 @@ function datasetsFactory(

function chartDataFactory(
datasetName: string,
labels: string[],
datasets: { [name: string]: any },
) {
const property = datasets[datasetName];
const labels = property.F.labels;
return {
labels,
datasets: [
Expand Down Expand Up @@ -200,7 200,7 @@ export default function Report({ open, properties, onClose }: ReportProps) {
const name = datasetLabels[index];
charts.push({
name,
data: chartDataFactory(selectedName, labels, datasets),
data: chartDataFactory(selectedName, datasets),
options: chartOptionsFactory(),
});
});
Expand Down

0 comments on commit 184c6f5

Please sign in to comment.