add bar graph, make changes to customgrid and custombars to match new structure
This commit is contained in:
41
mock/charts/mock-data.ts
Normal file
41
mock/charts/mock-data.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
export const graph_data_one_measures = {
|
||||
xValues: ['x_1', 'x_2', 'x_3', 'x_4', 'x_5'],
|
||||
yValues: [
|
||||
{
|
||||
key: 'measure_1',
|
||||
values: [100, 140, 90, 80, 40]
|
||||
}
|
||||
]
|
||||
};
|
||||
export const graph_data_two_measures = {
|
||||
xValues: ['x_1', 'x_2', 'x_3', 'x_4', 'x_5'],
|
||||
yValues: [
|
||||
{
|
||||
key: 'measure_1',
|
||||
values: [100, 140, 90, 80, 40]
|
||||
},
|
||||
{
|
||||
key: 'measure_2',
|
||||
values: [78, 82, 73, 56, 61],
|
||||
formatLabel: (value: number) => `${value}%`
|
||||
}
|
||||
]
|
||||
};
|
||||
export const graph_data_three_measures = {
|
||||
xValues: ['x_1', 'x_2', 'x_3', 'x_4', 'x_5'],
|
||||
yValues: [
|
||||
{
|
||||
key: 'measure_1',
|
||||
values: [100, 140, 90, 80, 40]
|
||||
},
|
||||
{
|
||||
key: 'measure_2',
|
||||
values: [78, 82, 73, 56, 61],
|
||||
formatLabel: (value: number) => `${value}%`
|
||||
},
|
||||
{
|
||||
key: 'measure_3',
|
||||
values: [77, 32, 45, 65, 50]
|
||||
}
|
||||
]
|
||||
};
|
Reference in New Issue
Block a user