Moved stuff around, changed the way I'm storing milestones data
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user