Added support for viewing PGD Clusters. #7215

This commit is contained in:
Aditya Toshniwal
2024-05-20 16:54:49 +05:30
committed by GitHub
parent d6a9f8a06c
commit dd45f06d50
67 changed files with 2237 additions and 436 deletions

View File

@@ -10,16 +10,16 @@ import { render } from '@testing-library/react';
describe('Graphs.js', ()=>{
it('transformData', ()=>{
expect(transformData({'Label1': [], 'Label2': []}, 1, false)).toEqual({
expect(transformData({'Label1': [], 'Label2': []}, 1)).toEqual({
datasets: [{
label: 'Label1',
data: [],
borderColor: '#00BCD4',
borderColor: '#1F77B4',
pointHitRadius: DATA_POINT_SIZE,
},{
label: 'Label2',
data: [],
borderColor: '#9CCC65',
borderColor: '#FF7F0E',
pointHitRadius: DATA_POINT_SIZE,
}],
refreshRate: 1,