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.24.0.pre.alpha.PLAY1181circleiconkitfixsizingerrorglobalspacingprops2675 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.24.0.pre.alpha.PLAY1181circleiconkitfixsizingerrorglobalspacingprops2675 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.24.0.pre.alpha.PLAY998backgroundkitremoveemptyinlinline2666 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.24.0.pre.alpha.PLAY998backgroundkitremoveemptyinlinline2666 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.23.0.pre.alpha.PLAY1284investigation2657 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.23.0.pre.alpha.PLAY1284investigation2657 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.24.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.24.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.22.0.pre.alpha.pbntr254barchartnegativenumber2640 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.22.0.pre.alpha.pbntr254barchartnegativenumber2640 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.22.0.pre.alpha.PLAY1297updatetextstyles2636 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.22.0.pre.alpha.PLAY1297updatetextstyles2636 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.22.0.pre.alpha.playbookgemspecrailsversion2608 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.22.0.pre.alpha.playbookgemspecrailsversion2608 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.23.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.23.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PLAY12582531 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PLAY12582531 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.21.0.pre.alpha.PLAY12582516 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.21.0.pre.alpha.PLAY12582516 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb