Skip to main content
Skip table of contents

Bar Chart With Color Change

This template code changes the bar's color, adds a meaningful title and removes the legend.

CODE
<script>
PocketQuery.chart('BarChart', {
  dataTable: [['Month', 'Value'], // adding dummy data for testing; remove this attribute for productive use
        ['JAN-17', 52.1],
        ['FEB-17', 51.2],
        ['MAR-17', 51.7]],
  title: "Just another templating example",
  width: 500,
  height: 500,
  legend: {position: 'none'},    // do not show legend
  colors: ['#ee0011']
});
</script>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.