2.9.7






Bar Graph

Default


Close
<% data = [{
    name: 'Installation',
    data: [154175]
}, {
    name: 'Manufacturing',
    data: [40434]
}, {
    name: 'Sales & Distribution',
    data: [39387]
}, {
    name: 'Project Development',
    data: [34227]
}, {
    name: 'Other',
    data: [18111]
}] %>

<%= pb_rails("bar_graph", props: {
    axis_title: 'Number of Employees',
    chart_data: data,
    id: "bar-test",
    point_start: 2012,
    subtitle: 'Source: thesolarfoundation.com',
    title: 'Solar Employment Growth by Sector, 2010-2016'
}) %>


Available Props
id
data
classname
aria
children
axis_title
chart_data
orientation
point_start
subtitle
title