Sha256: ea9c5f4193f106a8a52a55b53ce7f1dc49b81044bbc57c603cb0acfe6f16e9e5

Contents?: true

Size: 813 Bytes

Versions: 151

Compression:

Stored size: 813 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 = () => (
  <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}
    />
  </div>
)

export default BarGraphDefault

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
playbook_ui-7.0.1.pre.alpha2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.4.2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.1.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha9 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha8 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha7 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.4.1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha6 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha5 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.4.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.3.1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha4 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha3 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha2 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.3.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.2.1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.2.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-7.0.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.1.0.pre.alpha5 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx