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

hex

The 6-figure HEX color value.

width

The width of the Google pie chart.

height

The height of the Google pie chart.

td

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

Considerations

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: http://shor.tt/E5v