|
Index.html:
<style>
#material-gradient-chart stop {
stop-color: #BDEDE9;
}
.chart-gradient stop[offset="0"] {
stop-opacity: 0.75;
}
.chart-gradient stop[offset="1"] {
stop-opacity: 0;
}
</style>
<svg style="height: 0">
<defs>
<linearGradient id="material-gradient-chart" style="opacity: 0.75" class="chart-gradient" x1="0" x2="0" y1="0" y2="1">
<stop offset="0"></stop>
<stop offset="1"></stop>
</linearGradient>
</defs>
</svg>
Index.ts:
var chart = new ej.charts.Chart({
// add your additional code snippet here
series: [
{
type: 'Area',
dataSource: series1,
name: 'Product X',
xName: 'x',
yName: 'y',
fill: 'url(#' + theme.toLowerCase() + '-gradient-chart)',
},
],
});
chart.appendTo('#zoom-container'); |