WordPress.org

Forums

WordPress Charts
Bar Charts (6 posts)

  1. robertrel234
    Member
    Posted 11 months ago #

    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

    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/

  2. robertrel234
    Member
    Posted 11 months ago #

    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

  3. Paul van Zyl
    Member
    Plugin Author

    Posted 10 months ago #

    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

  4. robertrel234
    Member
    Posted 10 months ago #

    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

  5. robertrel234
    Member
    Posted 1 month ago #

    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

    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</p>

    <!--nextpage-->

  6. robertrel234
    Member
    Posted 1 month ago #

    Hi Paul

    Any thoughts on the last post on a negative bar chart

    Thanks

    Kind regards
    Robert

Reply

You must log in to post.

About this Plugin

  • WordPress Charts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic