Skip to content

Instantly share code, notes, and snippets.

@whisher
Last active March 9, 2018 16:25
Show Gist options
  • Save whisher/d3baa46c6d395b7e2360fd7cf6955503 to your computer and use it in GitHub Desktop.
Save whisher/d3baa46c6d395b7e2360fd7cf6955503 to your computer and use it in GitHub Desktop.
/** GRID **/
const dynamicDataGrid = [{
processId: "67543",
processType: "CHECK_IN",
dueDate: "2018-06-13",
dueTime: "00:00",
apartment: null,
guestName: "[1193] TEST Test",
contacts: null,
guestsNumber: 1,
status: "NEW",
taskId: "67558"
}];
const dataGrid = {
queryKey: 'nWXybSxQXtlVfogiLSvl',
rows: dynamicDataGrid,
viewType: 'dynamic-grid'
};
/** CHARTS **/
const dynamicCharts = [{
type: 'bar',
labels: ['2006', '2007', '2008', '2009', '2010', '2011', '2012'],
series: ['Series A', 'Series B'],
data: [
[65, 59, 80, 81, 56, 55, 40],
[28, 48, 40, 19, 86, 27, 90]
]
}, {
type: 'pie',
labels: ["Download Sales", "In-Store Sales", "Mail-Order Sales"],
data: [300, 500, 100]
}]
const dataCharts = {
queryKey: 'nWXybSxQXtlVfogiLSvl',
rows: dynamicCharts,
viewType: 'dynamic-charts'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment