Sha256: fce01d554c19547c127b207a21ec829e8171c400f461e7a8f1e81a2d924f9e1d
Contents?: true
Size: 1.45 KB
Versions: 1013
Compression:
Stored size: 1.45 KB
Contents
<% bar_graph_options = { customOptions: { chart: { type: 'bar' }, title: { text: 'Historic World Population by Region', align: 'left' }, subtitle: { text: 'Source: <a ' + 'href="https://en.wikipedia.org/wiki/List_of_continents_and_continental_subregions_by_population"' + 'target="_blank">Wikipedia.org</a>', align: 'left' }, xAxis: { categories: ['Africa', 'America', 'Asia', 'Europe'], lineWidth: 0 }, yAxis: { min: 0, title: { text: 'Population (millions)', align: 'high' }, labels: { overflow: 'justify' }, }, tooltip: { valueSuffix: ' millions' }, plotOptions: { bar: { dataLabels: { enabled: true }, groupPadding: 0.1 } }, series: [{ name: 'Year 1990', data: [631, 727, 3202, 721] }, { name: 'Year 2000', data: [814, 841, 3714, 726] }, { name: 'Year 2018', data: [1276, 1007, 4561, 746] }] } } %> <%= pb_rails("bar_graph", props: { id: "bar-horizontal", y_axis_min: 0, custom_options: bar_graph_options, }) %>
Version data entries
1,013 entries across 1,013 versions & 2 rubygems