Donut with radial gradient

<h2>Radial gradient modifiers</h2> amCharts 4 can either use full-fledged gradients or "gradient modifiers" as a fill for just about anything. A gradient modifier is an easy way to automatically create gradients out of the plain fill colors, for an instant stunning looks of the charts. [amb href="https://www.amcharts.com/docs/v4/concepts/colors/#Color_modifiers"]More about gradient modifiers[/amb] <h2>Legend</h2> Adding legend to the chart is super easy: you just set <code>legend</code> property of the chart with a new instance of <code>Legend</code>. The chart will take car of the rest, creating a legend with items for each slice and toggling/hover functionality. [amb href="https://www.amcharts.com/docs/v4/concepts/legend/"]More about chart legend[/amb]

by martinsrodrigoaugusto806

HTML

<script src="https://cdn.amcharts.com/lib/4/core.js"></script>
<script src="https://cdn.amcharts.com/lib/4/charts.js"></script>
<script src="https://cdn.amcharts.com/lib/4/themes/moonrisekingdom.js"></script>
<script src="https://cdn.amcharts.com/lib/4/themes/animated.js"></script>
<div id="chartdiv"></div>

CSS

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

#chartdiv {
  width: 100%;
  height: 500px;
}

JavaScript

/**
 * ---------------------------------------
 * This demo was created using amCharts 4.
 * 
 * For more information visit:
 * https://www.amcharts.com/
 * 
 * Documentation is available at:
 * https://www.amcharts.com/docs/v4/
 * ---------------------------------------
 */

// Themes begin
am4core.useTheme(am4themes_moonrisekingdom);
am4core.useTheme(am4themes_animated);
// Themes end

// Create chart instance
var chart = am4core.create("chartdiv", am4charts.PieChart);

// Add data
chart.data = [{
  "plataforma": "Webex",
  "contas": 750
}, {
  "plataforma": "Broadworks",
  "contas": 5600
}];

// Add and configure Series
var pieSeries = chart.series.push(new am4charts.PieSeries());
pieSeries.dataFields.value = "contas";
pieSeries.dataFields.category = "plataforma";
pieSeries.innerRadius = am4core.percent(50);
pieSeries.ticks.template.disabled = true;
pieSeries.labels.template.disabled = true;

var rgm = new am4core.RadialGradientModifier();
rgm.brightnesses.push(-0.8, -0.8, -0.5, 0, - 0.5);
pieSeries.slices.template.fillModifier = rgm;
pieSeries.slices.template.strokeModifier = rgm;
pieSeries.slices.template.strokeOpacity = 0.4;
pieSeries.slices.template.strokeWidth = 0;

chart.legend = new am4charts.Legend();
chart.legend.position = "right";