railbird-gql/test/mock/charts/mock-data.ts

111 lines
2.3 KiB
TypeScript
Raw Normal View History

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],
},
],
};
export const mockYData = [
{
data: [
{ value: 71.42857142857143 },
{ value: 100 },
{ value: 64.28571428571429 },
{ value: 57.14285714285714 },
{ value: 28.57142857142857 },
{ value: 14.285714285714285 },
{ value: 50 },
{ value: 14.285714285714285 },
{ value: 21.428571428571427 },
{ value: 21.428571428571427 },
],
svg: { fill: "transparent", stroke: "#598EBB" },
},
{
data: [
{ value: 27.77777777777778 },
{ value: 37.22222222222222 },
{ value: 68.33333333333333 },
{ value: 77.77777777777779 },
{ value: 86.66666666666667 },
{ value: 81.66666666666667 },
{ value: 70 },
{ value: 100 },
{ value: 68.33333333333333 },
{ value: 48.333333333333336 },
],
svg: { fill: "transparent", stroke: "#F2D4BC" },
},
];
export const mockXValues = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
export const mock_session_details = {
sessionTitle: "Afternoon Session",
date: "Today at 2:37pm",
timePlayed: "5:03:10",
medianRun: "7.3",
makeRate: "34%",
shotPacing: "0:00:26",
gameType: "Free Play",
notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit...",
};