WordPress.org

Forums

WordPress Charts
[resolved] Bar chart not using colors (2 posts)

  1. Donald
    Member
    Posted 1 year ago #

    I'm using the following shortcode. All the colours come out the same as the first hex value. The others aren't used:

    [wp_charts title="barchart1" type="bar" width="100%" margin="0" datasets="3.7, 3.3, 2.5, 1.8, 1.6, 1.3" labels="Calgary, Edmonton, Ottawa, Vancouver, Toronto, Montreal" colors="#69D2E7, #E0E4CC, #F38630, #96CE7F, #CEBC17, #CE4264"]

    Any idea why?

    http://wordpress.org/plugins/wp-charts/

  2. Paul van Zyl
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Donald,

    the colors are used for comparative datasets, so if you were comparing female to male per city for example, males would be represented by the first color and female by the second. This is the design of the underlying library and not really a feature of the plugin.

    Hope that helps explain.

    Thanks for taking the time to check out WP Charts.

    Kind Regards

    Paul

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags