and like us on FB

This article is one that was ported over from Internoetics. The imperfect nature of the function is preserved.

■ ■ ■

This article supports a number of color-related functions Tag: color on our website. The primary purpose of the example is to represent RGB color values in a Google Pie Graph.

The Result

The shortcode of [hexgraph hex="#ffcc33"] returns the following chart:

A 3D chart may be returned with [hexgraph hex="#bcbcbc" td="1"].

WordPress Shortcode

Copy and paste the WordPress function into your theme's functions.php file or, if you sensibly have one installed, your custom functions plugin.

If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.

Shortcode Attributes


The 6-figure HEX color value.


The width of the Google pie chart.


The height of the Google pie chart.


TO return a 3D chart, use td="1".


Create RGB Color Pie Graph From HEX Values (with WordPress Shortcode)

  • Find other color related articles on our blog Tag: color

Shortt URL for this post: