|
App.component.Html:
<ejs-accumulationchart id="container" #pie >
<e-accumulation-series-collection>
<e-accumulation-series [pointColorMapping]='pointColorMapping' [dataSource]='data'
// add your additional code here
>
</e-accumulation-series>
</e-accumulation-series-collection>
</ejs-accumulationchart>
<style>
.control-section {
min-height: 450px;
}
</style>
<svg style="height: 0">
<defs>
<linearGradient id="gradient-chart100" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#edd55b;stop-opacity:1" />
<stop offset="50%" style="stop-color:#8bc25f;stop-opacity:1" />
<stop offset="100%" style="stop-color:#4cb863;stop-opacity:1" />
</linearGradient>
</defs>
</svg>
App.component.ts:
// add your additional code here
public data: Object[] = [
{ x: 'Labour', y: 90, color: "url(#gradient-chart100)" },
{ x: 'Legal', y: 10, color: "#e7e7e7"}
];
public pointColorMapping:string = 'color';
|