Sha256: fd59c3ddaa0678c2aff7aea696a2ac0e01e3dbdb689670b6a91713646218f21b

Contents?: true

Size: 1.18 KB

Versions: 831

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]
}] %>

<% bar_graph_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: bar_graph_options
}) %>

Version data entries

831 entries across 831 versions & 2 rubygems

Version Path
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4866 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.9.0.pre.alpha.PBNTR738collapsiblewithintablekit4855 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR738collapsiblewithintablekit4855 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.10.0.pre.rc.10 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.10.0.pre.rc.10 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.10.0.pre.rc.9 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.10.0.pre.rc.9 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.10.0.pre.rc.8 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.10.0.pre.rc.8 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.10.0.pre.rc.7 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.10.0.pre.rc.7 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.10.0.pre.rc.6 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.10.0.pre.rc.6 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.10.0.pre.rc.5 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.10.0.pre.rc.5 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.10.0.pre.rc.4 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.10.0.pre.rc.4 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.9.0.pre.alpha.PLAY16264818 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY16264818 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
playbook_ui_docs-14.9.0.pre.alpha.PBNTR702stickyleftcolrails4806 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb