Wijmo UI for the Web
Change Gradients in Pie Wedges
Show AllShow All
Hide AllHide All

Building on the Quick Start example, you can change the pie wedge colors and gradients, and the outline color and thickness using the seriesStyles option and the fill, stroke, and stroke-width attributes. For more information, see Style Options.

  1. In the <head> section of your HTML file, replace the script that includes the document ready function with this one, which changes the seriesStyles gradient number (before the rgb color) to define the gradient. 

    Drop down and copy script to paste in <head> section

  2. No changes are necessary in the <body> section of your HTML file. The basic <div> tag is sufficient to create the chart.
  3. Save your HTML file and open it in a browser. The chart appears like the one in the image below, with a gradient from top to bottom in the top wedge, and different gradients for each wedge.

See Also

Concepts

Reference

 
Support Options