Sha256: 1272e9074929bec6d19f0fdef990c3f33c7868da6eb5ee857cff29600fe39ce5

Contents?: true

Size: 886 Bytes

Versions: 94

Compression:

Stored size: 886 Bytes

Contents

import React, { useState } from 'react'
import { Button, CircleChart } from '../../'

const CircleChartLiveData = (props) => {
  const [data, setData] = useState([
    {
      name: 'Waiting for Calls',
      value: 41,
    },
    {
      name: 'On Call',
      value: 49,
    },
    {
      name: 'After call',
      value: 10,
    },
  ])

  const data2 = [
    {
      name: 'Waiting for Calls',
      value: 48,
    },
    {
      name: 'On Call',
      value: 12,
    },
    {
      name: 'After call',
      value: 140,
    },
  ]

  const updateValue = () => {
    setData(data2)
  }

  return (
    <div>
      <Button
          onClick={updateValue}
          text="Update Value"
          {...props}
      />
      <CircleChart
          chartData={data}
          id="circle-chart-live-data"
          {...props}
      />
    </div>
  )
}

export default CircleChartLiveData

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
playbook_ui-9.19.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx