Title: Bar Charts
Last modified: August 21, 2016

---

# Bar Charts

 *  [robertrel234](https://wordpress.org/support/users/robertrel234/)
 * (@robertrel234)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/bar-charts/)
 * Hi Paul
 * Is it possible to do a bar chart that has negative and positive data in it which
   is centered around zero as in the link below
 * [http://www.andypope.info/charts/Invertneg.htm](http://www.andypope.info/charts/Invertneg.htm)
 * and how would I default the positive colors to blue and the negative colors to
   red
 * Thanks
    Robert
 * PS – this is a very nice plugin
 * [https://wordpress.org/plugins/wp-charts/](https://wordpress.org/plugins/wp-charts/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [robertrel234](https://wordpress.org/support/users/robertrel234/)
 * (@robertrel234)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bar-charts/#post-5042821)
 * Hi Paul
 * Sorry to bother you – just wondered if the was a solution to my bar chart query
   of a few days ago ?
 * Thanks
 * Robert
 *  [Paul van Zyl](https://wordpress.org/support/users/pushplaybang/)
 * (@pushplaybang)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bar-charts/#post-5042868)
 * Hi Robert
 * sorry not currently, this is a pretty simple charting library, I keep an eye 
   out, but you may need to look into a more complex library for your needs.
 * Thanks for trying WP Charts.
 * Kind Regards
 * Paul
 *  Thread Starter [robertrel234](https://wordpress.org/support/users/robertrel234/)
 * (@robertrel234)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bar-charts/#post-5042869)
 * Hi Paul
 * Thanks for the update – it might be a simple charting library but I think its
   very good
 * I appreciate your time and efforts
 * Kind regards
    Robert
 *  Thread Starter [robertrel234](https://wordpress.org/support/users/robertrel234/)
 * (@robertrel234)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/bar-charts/#post-5042931)
 * Hi Paul
 * I had an idea – could you tell me if its possible to do ?
 * I would like to create a bar chart
 * 1. with just negative data
    2. where the negative bars fall and 3. where price
   goes 0, -1,-2,-3,-4 etc
 * Currently the negative prices rise up
 * The final chart would look like something in the link below – but just will negative
   values
 * [http://www.andypope.info/charts/Invertneg.htm](http://www.andypope.info/charts/Invertneg.htm)
 * and the dates or values would be either at the top or the bottom of the chart
 * Below this post is some code for a negative bar chart – but as you will see the
   negative values go up towards the top of the chart from zero
 * Thanks
    Robert
 * **<span style=”text-decoration: underline;”>NEGATIVE VALUE BAR CHART (blue) Vs
   OTHER IDENTICAL TEST DATA (orange) </span>**
 *     ```
       [wp_charts title="barchart"
       type="bar"
       align="alignleft"
       margin="5px 20px"
       datasets="-10.0,-10.2,-7.3,-12.0,-11.6,-15.9,-15.1,-13.1,-19.0,-16.4,-19.5,-14.6,-17.0,-13.1,-19.3,-13.1,-13.7,-13.6,-14.5,-11.9,-13.3,-12.7,-13.2,-13.1,-14.8,-13.2,-14.2,-17.49 next next
       -10.0,-10.2,-7.3,-12.0,-11.6,-15.9,-15.1,-13.1,-19.0,-16.4,-19.5,-14.6,-17.0,-13.1,-19.3,-13.1,-13.7,-13.6,-14.5,-11.9,-13.3,-12.7,-18.2,-13.1,-14.8,-13.2,-14.2,-17.49" 
   
       labels="Dec-12,Jan-13,Feb-13,Mar-13,Apr-13,May-13,Jun-13,Jul-13,Aug-13,Sep-13,Oct-13,Nov-13,Dec-13,Jan-14,Feb-14,Mar-14,Apr-14,May-14,Jun-14,Jul-14,Aug-14,Sep-14,Oct-14,Nov-14,Dec-14,Jan-15,Feb-15,Mar-15" 
   
       scaleoverride="true"
       scalesteps="9"
       scalestepwidth="-2"
       scalestartvalue="0"
       scaleFontSize="16"
       canvaswidth="920px"
       canvasheight="460px"
       relativewidth="2"
       width="920px"
       height="460px"]
       ```
   
 *  
        <p style=”text-align: justify;”> For further Information on bar charts
   see – [Paul van Zyl](https://wordpress.org/plugins/wp-charts/faq/)</p>
 * <!–nextpage–>
 *  Thread Starter [robertrel234](https://wordpress.org/support/users/robertrel234/)
 * (@robertrel234)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/bar-charts/#post-5042933)
 * Hi Paul
 * Any thoughts on the last post on a negative bar chart
 * Thanks
 * Kind regards
    Robert

Viewing 5 replies - 1 through 5 (of 5 total)

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

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

 * 5 replies
 * 2 participants
 * Last reply from: [robertrel234](https://wordpress.org/support/users/robertrel234/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/bar-charts/#post-5042933)
 * Status: not resolved