WordPress Charts and Graphs Lite
[resolved] Use of percentages with Gauges (4 posts)

  1. ckhNL
    Posted 2 years ago #


    I can't seem to create a Gauge with for example "18%" as its value. If I use 18 the gauge is crafted correctly, but due to the following

    "Enter custom format pattern to apply to this series value, similar to the ICU pattern set. Use something like #,### to get 1,234 as output, or $# to add dollar sign before digits. Pay attention that if you use #% percentage format then your values will be multiplied by 100."

    i don't know how to set the percentages correctly. I would like to display "18%" when the input is 18 or display "18,something" but then the question is how to enter this as input...



  2. madpixels
    Posted 2 years ago #

    Hi @ckhNL!

    You need to divide your values by 100 and then use #% pattern in your chart. So it means that if it was 18 in the original file, it has to be 0.18 in new file.

  3. ckhNL
    Posted 2 years ago #

    This doesn't work for me as the gauges then stay on 0. I however found out that not dividing by 100 and using #'%' works fine.

  4. madpixels
    Posted 2 years ago #

    oh, great! :)
    mark this thread as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.