WordPress.org

Ready to get started?Download WordPress

Forums

Visualizer
[resolved] Use of percentages with Gauges (4 posts)

  1. ckhNL
    Member
    Posted 5 months ago #

    Hello,

    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...

    Thanks!

    https://wordpress.org/plugins/visualizer/

  2. madpixels
    Member
    Plugin Author

    Posted 5 months 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
    Member
    Posted 5 months 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
    Member
    Plugin Author

    Posted 5 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.