Sha256: fd0d3ce2968d64c7ed25c213e97c20b97f074fda19cb885061a7b8eec86f361a

Contents?: true

Size: 938 Bytes

Versions: 94

Compression:

Stored size: 938 Bytes

Contents

import React from 'react'
import { BarGraph } from '../../'

const chartData = [{
  name: 'Number of Installations',
  data: [1475, 200, 3000, 654, 656],
}]

const BarGraphDefault = (props) => (
  <div>
    <BarGraph
        axisTitle="Number of Employees"
        chartData={chartData}
        height="300"
        id="bar-fixed-height"
        title="Fixed Height (300px)"
        xAxisCategories={['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']}
        yAxisMin={0}
        {...props}
    />

    <br />
    <br />

    <BarGraph
        axisTitle="Number of Employees"
        chartData={chartData}
        height="50%"
        id="bar-percentage-height"
        title="Percentage Height (50%)"
        xAxisCategories={['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']}
        yAxisMin={0}
        {...props}
    />
  </div>
)

export default BarGraphDefault

Version data entries

94 entries across 94 versions & 1 rubygems

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