Sha256: cfa4997b5980620fea76c8a396c21bb440b61ab98bb720910eabae3603d8bae9

Contents?: true

Size: 1.01 KB

Versions: 1610

Compression:

Stored size: 1.01 KB

Contents

import React from 'react'

import LineGraph from '../_line_graph'

const data = [{
  name: 'Installation',
  data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
}, {
  name: 'Manufacturing',
  data: [24916, 28064, 29742, 40851, 50590, 65282, 70121, 85434],
}, {
  name: 'Sales & Distribution',
  data: [11744, 17722, 16005, 19771, 25185, 28377, 36147, 43387],
}, {
  name: 'Project Development',
  data: [5332, 6344, 7988, 12169, 15112, 14452, 22400, 30227],
}, {
  name: 'Other',
  data: [null, null, null, 3112, 4989, 5816, 15274, 18111],
}]

const LineGraphColors = (props) => (
  <div>
    <LineGraph
        axisTitle="Number of Employees"
        chartData={data}
        colors={['data-4', 'data-5', 'data-6', 'data-7', 'data-8']}
        id="line-colors"
        title="Line Graph with Custom Data Colors"
        xAxisCategories={['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']}
        yAxisMin={0}
        {...props}
    />
  </div>
)

export default LineGraphColors

Version data entries

1,610 entries across 1,610 versions & 2 rubygems

Version Path
playbook_ui_docs-14.7.0.pre.rc.19 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.7.0.pre.rc.19 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.7.0.pre.rc.18 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.7.0.pre.rc.18 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.7.0.pre.rc.17 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.7.0.pre.rc.17 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.7.0.pre.rc.16 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.7.0.pre.rc.16 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.7.0.pre.rc.15 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.7.0.pre.rc.15 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.7.0.pre.rc.14 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.7.0.pre.rc.14 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.7.0.pre.rc.13 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.7.0.pre.rc.13 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.6.2.pre.alpha.PBNTR666advancedtablefirstcolumn4406 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.6.2.pre.alpha.PBNTR666advancedtablefirstcolumn4406 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui_docs-14.7.0.pre.rc.12 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
playbook_ui-14.7.0.pre.rc.12 app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx