apexcharts / ng-apexcharts

ng-apexcharts is an implementation of apexcharts for angular. It comes with one simple component that enables you to use apexcharts in an angular project.
MIT License
310 stars 78 forks source link

ApexFill gradient is missing colorStops #207

Open SimonFavraud opened 2 years ago

SimonFavraud commented 2 years ago

Hello,

The interface ApexFill doesn't allow me to set a gradient colorStops.

There is a sample of my error :

'colorStops' does not exist in type '{ shade?: string; type?: string; shadeIntensity?: number; gradientToColors?: string[]; inverseColors?: boolean; opacityFrom?: number; opacityTo?: number; stops?: number[]; }'.

I've managed to use it by modifyng the interface inside the module, so I guess it might be an oversight

Adriien-M commented 2 years ago

Indeed, this property is definied in apexcharts.js but not in ng-apexcharts library... If I change my imports from import { ApexOptions } from 'ng-apexcharts' to import { ApexOptions } from 'apexcharts' everything works correclty! I'm wondering why ng-apexcharts does not use the typescript definition provided by apexcharts.js btw?

MadeleyneSilva commented 7 months ago

another solution for this?