Sha256: 37289335670091c3e6a086fbd064736a2ae4aa46aef2878c5e9f10c6345b2f41

Contents?: true

Size: 1.74 KB

Versions: 846

Compression:

Stored size: 1.74 KB

Contents

import React from 'react'

import CircleChart from '../_circle_chart'

import {Title} from '../..'

const data = [
  {
    name: 'Waiting for Calls',
    value: 41,
  },
  {
    name: 'On Call',
    value: 49,
  },
  {
    name: 'After call',
    value: 10,
  },
]

const dataFirst = [{
  name: 'Bugs',
  value: 8,

},
{
  name: 'Chores',
  value: 1,

},
{
  name: 'Stories',
  value: 12,
},
]

const dataSecond = [
  {
    name: 'Queued',
    value: 7,
  },
  {
    name: 'In Progress',
    value: 6,
  },
  {
    name: 'Validation',
    value: 3,
  },
  {
    name: 'Done',
    value: 6,
  },
]


const CircleChartLegendPosition = (props) => (
  <div>
    <Title
        paddingBottom="sm"
        paddingTop="sm"
        size={4}
        tag="h4"
        text="align | verticalAlign"
    />
    <CircleChart
        align='right'
        chartData={data}
        id="legend-position-circle"
        legend
        paddingBottom="sm"
        title="Alignment of Legend"
        verticalAlign="top"
        {...props}
    />
    <Title
        paddingBottom="sm"
        paddingTop="sm"
        size={4}
        tag="h4"
        text="layout"
    />
    <CircleChart
        chartData={dataFirst}
        id="legend-position-circle-1"
        layout="vertical"
        legend
        paddingBottom="sm"
        paddingTop="sm"
        title="Layout of Legend"
        {...props}
    />
    <Title
        paddingBottom="sm"
        paddingTop="sm"
        size={4}
        tag="h4"
        text="x | y"
    />
    <CircleChart
        chartData={dataSecond}
        id="legend-position-circle-2"
        layout="vertical"
        legend
        title="Offset of Legend"
        x={100}
        y={10}
        {...props}
    />
  </div>
)

export default CircleChartLegendPosition

Version data entries

846 entries across 846 versions & 2 rubygems

Version Path
playbook_ui-11.20.0.pre.alpha.passthrough1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.20.0.pre.alpha.railsdialog1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.20.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.19.0.pre.alpha.map1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.19.0.pre.alpha.pagpassthrough1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.19.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.18.0.pre.alpha.pagutility1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.19.0.pre.typeahead1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.18.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.17.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.15.0.pre.alpha.dependencies1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.16.0.pre.alpha.paginationrails1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.16.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.16.0.pre.alpha.reactupgrade1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.15.0.pre.alpha.table1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.16.0.pre.alpha.pagination.rails1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.15.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.14.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-11.13.0.pre.alpha.fontawesome1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx