Partially Fill A Chart

Good Evening,

I'm trying to have a donut chart only partially fill if it has only one item. For example if the donut chart is for Percentage of Jobs Completed and it is 50%, I want the chart to only be 50% filled.

Thanks,
Steven

1 Reply

DG Durga Gopalakrishnan Syncfusion Team December 10, 2020 03:43 PM UTC

Hi Steven,

Greetings from Syncfusion.

We suggest you usePointColorMappingproperty to customize fill color of chart series point. We have created gradient to view the fill color partially. We have prepared sample based on your requirement. 

@(Html.EJS().AccumulationChart("container").Series( 
series =>
{
    series. PointColorMapping("color");
}).Load("load").Render()
<script>
    var load = function (args) {
        args.chart.series[0].dataSource[0].color = "url(#Gradient1)";
    }
</script>



Please revert us if you have any concerns.

Regards,
Durga G



Loader.
Up arrow icon