Sha256: 682c70c118380583b40c463dd99c75ed10eb42f496cd5f11864e60933ad2ba88

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

<% data = [{
    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]
}] %>

<% custom_options = {
    customOptions: {
          subtitle: {
            text: "Overwritten subtitle",
            style: {
                color: "red",
                fontSize: 20
            }
        }
    }
} %>

<%= pb_rails("bar_graph", props: {
    axis_title: 'Number of Employees',
    chart_data: data,
    id: "bar-default",
    y_axis_min: 0,
    x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
    subtitle: 'Subtitle to replace',
    title: 'Solar Employment Growth by Sector, 2010-2016',
    custom_options: custom_options
}) %>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
playbook_ui_docs-13.18.0.pre.alpha.thor93bargraphoptions2219 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.18.0.pre.alpha.thor93bargraphoptions2219 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb