Sha256: 4879d94feca41efda4d9efb970678d25929499427e3e569ba235dab0da20646d

Contents?: true

Size: 837 Bytes

Versions: 94

Compression:

Stored size: 837 Bytes

Contents

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

const chartData = [{
  name: 'Installation',
  data: [1475, 200, 3000, 654, 656],
}, {
  name: 'Manufacturing',
  data: [4434, 524, 2320, 440, 500],
}, {
  name: 'Sales & Distribution',
  data: [3387, 743, 1344, 434, 440],
}, {
  name: 'Project Development',
  data: [3227, 878, 999, 780, 1000],
}, {
  name: 'Other',
  data: [1111, 677, 3245, 500, 200],
}]

const BarGraphDefault = (props) => (
  <div>
    <BarGraph
        axisTitle="Number of Employees"
        chartData={chartData}
        id="bar-default"
        subTitle="Source: thesolarfoundation.com"
        title="Solar Employment Growth by Sector, 2010-2016"
        xAxisCategories={['Jan', 'Feb', 'Mar', 'Apr', 'May']}
        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_default.jsx
playbook_ui-9.9.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.8.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.7.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.6.1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.6.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.5.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.4.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx