#Dimensions
#Dimensions de colonne
Dimensions de colonne
import { VSeedRender } from '@components'
export default () => {
const vseedConfig = {
"chartType": "columnParallel",
"dimensions": [
{
"id": "category",
"alias": "Catégorie"
},
{
"id": "date",
"alias": "Date",
"encoding": "column"
},
{
"id": "region",
"alias": "Région",
"encoding": "column"
}
],
"measures": [
{
"id": "profit",
"alias": "Bénéfice"
}
],
"dataset": [
{
"date": "2019",
"region": "east",
"category": "Grocery",
"profit": 10
},
{
"date": "2019",
"region": "east",
"category": "Beverages",
"profit": 30
},
{
"date": "2019",
"region": "east",
"category": "Dairy",
"profit": 30
},
{
"date": "2019",
"region": "east",
"category": "Household",
"profit": 50
},
{
"date": "2019",
"region": "east",
"category": "Personal",
"profit": 40
},
{
"date": "2019",
"region": "west",
"category": "Grocery",
"profit": 10
},
{
"date": "2019",
"region": "west",
"category": "Beverages",
"profit": 30
},
{
"date": "2019",
"region": "west",
"category": "Dairy",
"profit": 30
},
{
"date": "2019",
"region": "west",
"category": "Household",
"profit": 50
},
{
"date": "2019",
"region": "west",
"category": "Personal",
"profit": 40
},
{
"date": "2020",
"region": "east",
"category": "Grocery",
"profit": 10
},
{
"date": "2020",
"region": "east",
"category": "Beverages",
"profit": 30
},
{
"date": "2020",
"region": "east",
"category": "Dairy",
"profit": 30
},
{
"date": "2020",
"region": "east",
"category": "Household",
"profit": 50
},
{
"date": "2020",
"region": "east",
"category": "Personal",
"profit": 40
},
{
"date": "2020",
"region": "west",
"category": "Grocery",
"profit": 10
},
{
"date": "2020",
"region": "west",
"category": "Beverages",
"profit": 30
},
{
"date": "2020",
"region": "west",
"category": "Dairy",
"profit": 30
},
{
"date": "2020",
"region": "west",
"category": "Household",
"profit": 50
},
{
"date": "2020",
"region": "west",
"category": "Personal",
"profit": 40
}
]
}
return <VSeedRender vseed={vseedConfig} />
}#Dimensions standard
Dimensions standard
import { VSeedRender } from '@components'
export default () => {
const vseedConfig = {
"chartType": "columnParallel",
"dimensions": [
{
"id": "category",
"alias": "Catégorie"
},
{
"id": "date",
"alias": "Date"
},
{
"id": "region",
"alias": "Région"
}
],
"measures": [
{
"id": "profit",
"alias": "Bénéfice"
}
],
"dataset": [
{
"date": "2019",
"region": "east",
"category": "Grocery",
"profit": 10
},
{
"date": "2019",
"region": "east",
"category": "Beverages",
"profit": 30
},
{
"date": "2019",
"region": "east",
"category": "Dairy",
"profit": 30
},
{
"date": "2019",
"region": "east",
"category": "Household",
"profit": 50
},
{
"date": "2019",
"region": "east",
"category": "Personal",
"profit": 40
},
{
"date": "2019",
"region": "west",
"category": "Grocery",
"profit": 10
},
{
"date": "2019",
"region": "west",
"category": "Beverages",
"profit": 30
},
{
"date": "2019",
"region": "west",
"category": "Dairy",
"profit": 30
},
{
"date": "2019",
"region": "west",
"category": "Household",
"profit": 50
},
{
"date": "2019",
"region": "west",
"category": "Personal",
"profit": 40
},
{
"date": "2020",
"region": "east",
"category": "Grocery",
"profit": 10
},
{
"date": "2020",
"region": "east",
"category": "Beverages",
"profit": 30
},
{
"date": "2020",
"region": "east",
"category": "Dairy",
"profit": 30
},
{
"date": "2020",
"region": "east",
"category": "Household",
"profit": 50
},
{
"date": "2020",
"region": "east",
"category": "Personal",
"profit": 40
},
{
"date": "2020",
"region": "west",
"category": "Grocery",
"profit": 10
},
{
"date": "2020",
"region": "west",
"category": "Beverages",
"profit": 30
},
{
"date": "2020",
"region": "west",
"category": "Dairy",
"profit": 30
},
{
"date": "2020",
"region": "west",
"category": "Household",
"profit": 50
},
{
"date": "2020",
"region": "west",
"category": "Personal",
"profit": 40
}
]
}
return <VSeedRender vseed={vseedConfig} />
}#Dimensions de ligne
Dimensions de ligne
import { VSeedRender } from '@components'
export default () => {
const vseedConfig = {
"chartType": "columnParallel",
"dimensions": [
{
"id": "category",
"alias": "Catégorie"
},
{
"id": "date",
"alias": "Date",
"encoding": "row"
},
{
"id": "region",
"alias": "Région",
"encoding": "row"
}
],
"measures": [
{
"id": "profit",
"alias": "Bénéfice"
}
],
"dataset": [
{
"date": "2019",
"region": "east",
"category": "Grocery",
"profit": 10
},
{
"date": "2019",
"region": "east",
"category": "Beverages",
"profit": 30
},
{
"date": "2019",
"region": "east",
"category": "Dairy",
"profit": 30
},
{
"date": "2019",
"region": "east",
"category": "Household",
"profit": 50
},
{
"date": "2019",
"region": "east",
"category": "Personal",
"profit": 40
},
{
"date": "2019",
"region": "west",
"category": "Grocery",
"profit": 10
},
{
"date": "2019",
"region": "west",
"category": "Beverages",
"profit": 30
},
{
"date": "2019",
"region": "west",
"category": "Dairy",
"profit": 30
},
{
"date": "2019",
"region": "west",
"category": "Household",
"profit": 50
},
{
"date": "2019",
"region": "west",
"category": "Personal",
"profit": 40
},
{
"date": "2020",
"region": "east",
"category": "Grocery",
"profit": 10
},
{
"date": "2020",
"region": "east",
"category": "Beverages",
"profit": 30
},
{
"date": "2020",
"region": "east",
"category": "Dairy",
"profit": 30
},
{
"date": "2020",
"region": "east",
"category": "Household",
"profit": 50
},
{
"date": "2020",
"region": "east",
"category": "Personal",
"profit": 40
},
{
"date": "2020",
"region": "west",
"category": "Grocery",
"profit": 10
},
{
"date": "2020",
"region": "west",
"category": "Beverages",
"profit": 30
},
{
"date": "2020",
"region": "west",
"category": "Dairy",
"profit": 30
},
{
"date": "2020",
"region": "west",
"category": "Household",
"profit": 50
},
{
"date": "2020",
"region": "west",
"category": "Personal",
"profit": 40
}
]
}
return <VSeedRender vseed={vseedConfig} />
}#Dimensions de pivot
Dimensions de pivot
import { VSeedRender } from '@components'
export default () => {
const vseedConfig = {
"chartType": "columnParallel",
"dimensions": [
{
"id": "category",
"alias": "Catégorie"
},
{
"id": "date",
"alias": "Date",
"encoding": "column"
},
{
"id": "region",
"alias": "Région",
"encoding": "row"
}
],
"measures": [
{
"id": "profit",
"alias": "Bénéfice"
}
],
"dataset": [
{
"date": "2019",
"region": "east",
"category": "Grocery",
"profit": 10
},
{
"date": "2019",
"region": "east",
"category": "Beverages",
"profit": 30
},
{
"date": "2019",
"region": "east",
"category": "Dairy",
"profit": 30
},
{
"date": "2019",
"region": "east",
"category": "Household",
"profit": 50
},
{
"date": "2019",
"region": "east",
"category": "Personal",
"profit": 40
},
{
"date": "2019",
"region": "west",
"category": "Grocery",
"profit": 10
},
{
"date": "2019",
"region": "west",
"category": "Beverages",
"profit": 30
},
{
"date": "2019",
"region": "west",
"category": "Dairy",
"profit": 30
},
{
"date": "2019",
"region": "west",
"category": "Household",
"profit": 50
},
{
"date": "2019",
"region": "west",
"category": "Personal",
"profit": 40
},
{
"date": "2020",
"region": "east",
"category": "Grocery",
"profit": 10
},
{
"date": "2020",
"region": "east",
"category": "Beverages",
"profit": 30
},
{
"date": "2020",
"region": "east",
"category": "Dairy",
"profit": 30
},
{
"date": "2020",
"region": "east",
"category": "Household",
"profit": 50
},
{
"date": "2020",
"region": "east",
"category": "Personal",
"profit": 40
},
{
"date": "2020",
"region": "west",
"category": "Grocery",
"profit": 10
},
{
"date": "2020",
"region": "west",
"category": "Beverages",
"profit": 30
},
{
"date": "2020",
"region": "west",
"category": "Dairy",
"profit": 30
},
{
"date": "2020",
"region": "west",
"category": "Household",
"profit": 50
},
{
"date": "2020",
"region": "west",
"category": "Personal",
"profit": 40
}
]
}
return <VSeedRender vseed={vseedConfig} />
}