Moved stuff around, changed the way I'm storing milestones data

This commit is contained in:
2024-05-25 21:38:22 -04:00
parent 17f5b675b9
commit 818adc0d47
21 changed files with 437 additions and 166 deletions

View File

@@ -5,7 +5,7 @@ import {
OnDestroy,
ViewChild,
} from '@angular/core';
import { Chart, ChartOptions } from 'chart.js';
import { Chart, ChartOptions } from 'chart.js/auto';
import { PluginNodata } from './plugin-nodata';
import { PluginMoreColors } from './plugin-more-colors';
import { ChartType, IData } from './chart-type';
@@ -22,9 +22,20 @@ export class ChartComponent implements AfterViewInit, OnDestroy {
private chart: any = undefined;
private data: IData = {
labels: [],
labelsSource: [],
datasets: [],
labels: Array.from(
{ length: 10 },
() => `${Math.floor(Math.random() * 100)}`
),
// labelsSource: [],
datasets: [
{
label: 'test',
data: Array.from(
{ length: 10 },
() => `${Math.floor(Math.random() * 100)}`
),
},
],
};
constructor() {}