WordPress Charts
[resolved] Colors in bar-chart (2 posts)

  1. bphil
    Posted 1 year ago #


    thanks for the great plugin, looking so forward to a version with labels for pie-charts. In the meantime, I was wondering whether I do anything wrong with this shortcode:

    [wp_charts title="persistentIdentification" type="bar" align="alignnone" margin="5px 20px" datasets="3,2" labels="persistentURLs,none" colors="E0E4CC,F38630" scaleOverride="true" scaleSteps="1" scalestepwidth="3" scalestartvalue="0"]

    The bars do get colored, but they are all the same color. What I want is to have the first dataset ("3") to be a E0E4CC and the other ("2") to be F38630.

    Any ideas what's going on here?


  2. Paul van Zyl
    Plugin Author

    Posted 1 year ago #

    tHey bphil

    the bar chart is a comparative chart so you will need to use datasets and each item in a dataset will have a different color.

    Hope that helps, and thanks for the feedback.

    Kind Regards


Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic