Title: Bar chart
Last modified: August 30, 2016

---

# Bar chart

 *  Resolved [wprookiekris](https://wordpress.org/support/users/wprookiekris/)
 * (@wprookiekris)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/bar-chart/)
 * I’m trying to create a connected bar chart (2 data types next to each other) 
   but the example short code is creating it in a stacked format. Is there a parameter
   I’m missing?
 *     ```
       [barChart  width="500px"
           legend="{ position: 'top', maxLines: 2 }"
           vaxis="{title: 'in $000', titleTextStyle: {color: 'blue'}}"
           haxis="{title: 'Year', titleTextStyle: {color: 'blue'}}"]
               ['Year', 'Sales', 'Expenses', 'cost'],
               ['2004', 1000, 400, 25],
               ['2005', 1170, 460, 50],
               ['2006', 660, 1120, 60],
               ['2007', 1030, 540, 80]
       [/barChart]
       ```
   
 * [https://wordpress.org/plugins/googlegraph/](https://wordpress.org/plugins/googlegraph/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [jvrtanoski](https://wordpress.org/support/users/jvrtanoski/)
 * (@jvrtanoski)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/bar-chart/#post-6656782)
 * Hi,
    You need to have the [barChart] tag with al it’s attributes in _one line_
   without a new-line between the attributes in the shortcode. Basically, WordPress
   parser is confused with the new-line between “[” and “]”. So try replacing firs
   4 lines with this line:
 * [barChart width=”500px” legend=”{ position: ‘top’, maxLines: 2 }” vaxis=”{title:‘
   in $000’, titleTextStyle: {color: ‘blue’}}” haxis=”{title: ‘Year’, titleTextStyle:{
   color: ‘blue’}}”]
 *  Let me know if this helps.
    Jordan

Viewing 1 replies (of 1 total)

The topic ‘Bar chart’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/googlegraph_f4e9d0.svg)
 * [GoogleGraph](https://wordpress.org/plugins/googlegraph/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/googlegraph/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/googlegraph/)
 * [Active Topics](https://wordpress.org/support/plugin/googlegraph/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/googlegraph/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/googlegraph/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [jvrtanoski](https://wordpress.org/support/users/jvrtanoski/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/bar-chart/#post-6656782)
 * Status: resolved