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} />
}