问题描述
如何在 colorScheme 中使用线性渐变 = { 域:[线性梯度(向左,rgba(9,174,161,0.5) 100%,#09aea1 50%,rgba(9,0.5) 0%)] ? }; 使用 Angular 5 和 ngx-charts-area-chart-stacked。
<ngx-charts-area-chart-stacked
[view]="view"
[scheme]="colorScheme"
[legend]="legend"
[showXAxisLabel]="showXAxisLabel"
[showYAxisLabel]="showYAxisLabel"
[xAxis]="xAxis"
[yAxis]="yAxis"
[timeline]="timeline"
[results]="multi"
(select)="onSelect($event)">
</ngx-charts-area-chart-stacked>
multi: any[] = [];
view: any[] = [450,120];
// options
legend: boolean = false;
showLabels: boolean = true;
animations: boolean = true;
xAxis: boolean = true;
yAxis: boolean = true;
showYAxisLabel: boolean = false;
showXAxisLabel: boolean = false;
timeline: boolean = true;
colorScheme = {
domain: ['#09aea1']
};
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)