railbird-gql/test/mock/charts/mock-data.ts
2024-02-06 15:08:19 -08:00

65 lines
1.2 KiB
TypeScript

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],
},
],
};
export const line_chart_one_y_data = {
xValues: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
yValues: [
{
key: "measure_1",
values: [100, 140, 90, 80, 40, 20, 70, 20, 30, 30],
},
],
};
export const line_chart_two_y_data = {
xValues: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
yValues: [
{
key: "measure_1",
values: [100, 140, 90, 80, 40, 20, 70, 20, 30, 30],
},
{
key: "measure_2",
values: [50, 67, 123, 140, 156, 147, 126, 180, 123, 87],
},
],
};