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.9.0.alpha.inline1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.9.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.8.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.7.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.6.1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.6.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.5.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.4.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx