Sha256: 1cac245e6832d90a0eda2ea01d616c80ee987b8f6c79b076e4c0f5d7db2695e7

Contents?: true

Size: 1.09 KB

Versions: 1851

Compression:

Stored size: 1.09 KB

Contents

import React from 'react'

import TreemapChart from '../_treemap_chart'

const chartData = [
  {
    name: 'Meat',
    id: 'Meat',
    color: "#0056CF",
  }, {
    name: 'Pepperoni',
    parent: 'Meat',
    value: 250,
  }, {
    name: 'Meatball',
    parent: 'Meat',
    value: 400,
  }, {
    name: "Anchovy",
    parent: 'Meat',
    value: 40,
  }, {
    name: 'Vegetarian',
    id: 'Vegetarian',
    color: "#F9BB00",
  }, {
    name: 'Onions',
    parent: 'Vegetarian',
    value: 300,
  }, {
    name: 'Pineapple',
    parent: 'Vegetarian',
    value: 90,
  }, {
    name: "Peppers",
    parent: 'Vegetarian',
    value: 80,
  }, {
    name: "Specialty",
    id: "Specialty",
    color: "#9E64E9",
  },{
    name: "Buffalo Chicken",
    parent: "Specialty",
    value: 400,
  }, {
    name: "Supreme",
    parent: "Specialty",
    value: 150,
  }
]

const TreemapChartGroupedData = (props) => (
  <div>
    <TreemapChart
        chartData={chartData}
        grouped
        id="treemap-grouped-data"
        title="Grouped Toppings"
        {...props}
    />
  </div>
)

export default TreemapChartGroupedData

Version data entries

1,851 entries across 1,851 versions & 2 rubygems

Version Path
playbook_ui-11.4.0.pre.alpha.rubytheme1 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.4.0 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.3.0 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.7 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.6 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.5 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.4 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.4.pre.alpha1 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.3 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.2 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.1 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.2.0 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.1.2 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.1.2.pre.alpha1 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.1.1 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.1.1.pre.alpha1 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.1.0 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx
playbook_ui-11.0.1 app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx