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.28.0.pre.alpha.pbntr312tableheaderflexremoval3019 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.28.0.pre.alpha.pbntr312tableheaderflexremoval3019 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.28.0.pre.alpha.dialogturbostreameventlistener3017 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.28.0.pre.alpha.dialogturbostreameventlistener3017 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.28.0.pre.alpha.PLAY1338alpha3001 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.28.0.pre.alpha.PLAY1338alpha3001 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2987 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2987 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2984 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2984 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.27.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.27.0 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.26.0.pre.alpha.jasoncypretpatch12820 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12820 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui_docs-13.26.0.pre.alpha.jasoncypretpatch12816 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12816 app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb