Working on expanded pages and data processing.
This commit is contained in:
7
src/components/charts/util.js
Normal file
7
src/components/charts/util.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export const colors = ['#f5f3ff','#ede9fe','#ddd6fe','#c4b5fd','#a78bfa','#8b5cf6','#7c3aed','#6d28d9','#5b21b6','#4c1d95']
|
||||
|
||||
export function col(data, row, column) {
|
||||
const index = data.value.headers.indexOf(column)
|
||||
if (index === -1) return null
|
||||
return row[index]
|
||||
}
|
||||
Reference in New Issue
Block a user