Sha256: 2b8900784d5fe002c74959dddfebbb13cb4383e9d351c98be284961a21f3ce48

Contents?: true

Size: 1.18 KB

Versions: 122

Compression:

Stored size: 1.18 KB

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"
            }
        },
        xAxis: {
            categories: [
                '<i class="far fa-apple-whole"></i> Jan',
                '<i class="far fa-strawberry"></i> Feb',
                '<i class="far fa-lemon"></i> Mar',
                '<i class="far fa-pear"></i> Apr',
                '<i class="far fa-peach"></i> May'
            ],
            labels: {
                useHTML: true,
            }
        }
    }
} %>

<%= pb_rails("bar_graph", props: {
    axis_title: 'Number of Employees',
    chart_data: data,
    id: "bar-default",
    y_axis_min: 0,
    subtitle: 'Subtitle to replace',
    title: 'Bar Graph with Custom Overrides',
    custom_options: custom_options
}) %>

Version data entries

122 entries across 122 versions & 2 rubygems

Version Path
playbook_ui_docs-13.21.0.pre.alpha.PLAY12582515 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PLAY12582515 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PLAY12582514 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PLAY12582514 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.22.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.22.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PBNTR243globalpositioningpropinset2504 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PBNTR243globalpositioningpropinset2504 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PLAY12652489 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PLAY12652489 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PLAY12582474 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PLAY12582474 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2466 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2466 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PLAY120322465 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PLAY120322465 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb