Sha256: 3cf04bcaa6554e8c14c08d297b898620cfc624b474f702a85169010a342dc79e

Contents?: true

Size: 945 Bytes

Versions: 54

Compression:

Stored size: 945 Bytes

Contents

import React from 'react'
import LineGraph from '../_line_graph'

const data = [{
  name: 'Number of Installations',
  data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
}]

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

    <br />
    <br />

    <LineGraph
        axisTitle="Number of Employees"
        chartData={data}
        height="50%"
        id="line-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 LineGraphDefault

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
playbook_ui-10.23.0.pre.cachetest app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.21.0.pre.alpha.lightbox.2 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.21.0 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.21.0.pre.alpha.lightbox app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.21.0.pre.alpha.rg1 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.21.0.pre.alpha.jg1 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.21.0.pre.alpha.na1 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.21.0.pre.alpha.jd1 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.20.0 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.19.0 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.19.0.pre.lightbox app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.18.2 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.19.0.pre.popover.alpha1 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.18.1 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.18.0 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.17.0 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.16.0 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.15.1 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.15.1.pre.alpha.rubocop.deps app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
playbook_ui-10.15.0 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx