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-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.33.0.pre.alpha.PLAY1454formpillicons3309 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.33.0.pre.alpha.PLAY1454formpillicons3309 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.33.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14103236 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14103236 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.31.0.pre.alpha.play1416movealiaslogic3232 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.31.0.pre.alpha.play1416movealiaslogic3232 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.31.0.pre.alpha.PBNTR342navtabbing3231 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3231 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui_docs-13.31.0.pre.alpha.PBNTR342navtabbing3230 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3230 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx