#Dimensions
#열 차원
열 차원
import { VSeedRender } from '@components'
export default () => {
const vseedConfig = {
"chartType": "columnParallel",
"dimensions": [
{
"id": "category",
"alias": "카테고리"
},
{
"id": "date",
"alias": "날짜",
"encoding": "column"
},
{
"id": "region",
"alias": "지역",
"encoding": "column"
}
],
"measures": [
{
"id": "profit",
"alias": "이익"
}
],
"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} />
}#일반 차원
일반 차원
import { VSeedRender } from '@components'
export default () => {
const vseedConfig = {
"chartType": "columnParallel",
"dimensions": [
{
"id": "category",
"alias": "카테고리"
},
{
"id": "date",
"alias": "날짜"
},
{
"id": "region",
"alias": "지역"
}
],
"measures": [
{
"id": "profit",
"alias": "이익"
}
],
"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} />
}#행 차원
행 차원
import { VSeedRender } from '@components'
export default () => {
const vseedConfig = {
"chartType": "columnParallel",
"dimensions": [
{
"id": "category",
"alias": "카테고리"
},
{
"id": "date",
"alias": "날짜",
"encoding": "row"
},
{
"id": "region",
"alias": "지역",
"encoding": "row"
}
],
"measures": [
{
"id": "profit",
"alias": "이익"
}
],
"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} />
}#피벗 차원
피벗 차원
import { VSeedRender } from '@components'
export default () => {
const vseedConfig = {
"chartType": "columnParallel",
"dimensions": [
{
"id": "category",
"alias": "카테고리"
},
{
"id": "date",
"alias": "날짜",
"encoding": "column"
},
{
"id": "region",
"alias": "지역",
"encoding": "row"
}
],
"measures": [
{
"id": "profit",
"alias": "이익"
}
],
"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} />
}