Skip to content

Commit

Permalink
highlightSeries, allowMouseWheelZoom, series.hidden added to types
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Aug 31, 2024
1 parent 19aff05 commit ab4a08c
Show file tree
Hide file tree
Showing 6 changed files with 854 additions and 799 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@angular/router": "^18.0.4",
"@angular/ssr": "^18.0.4",
"@schematics/angular": "^18.0.4",
"apexcharts": "^3.49.0",
"apexcharts": "^3.53.0",
"rxjs": "~6.5.5",
"tslib": "^2.0.0",
"zone.js": "~0.14.2"
Expand Down Expand Up @@ -63,4 +63,4 @@
"ts-node": "~8.10.1",
"typescript": "~5.4.5"
}
}
}
34 changes: 17 additions & 17 deletions projects/ng-apexcharts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projects/ng-apexcharts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@angular/common": "^18.0.4",
"@angular/core": "^18.0.4",
"rxjs": "^6.5.5 || ^7.4.0",
"apexcharts": "^3.49.1"
"apexcharts": "^3.53.0"
},
"keywords": [
"angular",
Expand Down
6 changes: 6 additions & 0 deletions projects/ng-apexcharts/src/lib/chart/chart.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ export class ChartComponent implements OnChanges, OnDestroy {
);
}

public highlightSeries(seriesName: string): any {
return this.ngZone.runOutsideAngular(() =>
this.chartInstance()?.highlightSeries(seriesName)
);
}

public toggleSeries(seriesName: string): any {
return this.ngZone.runOutsideAngular(() =>
this.chartInstance()?.toggleSeries(seriesName)
Expand Down
4 changes: 4 additions & 0 deletions projects/ng-apexcharts/src/lib/model/apex-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,16 @@ export interface ApexChart {
png?: {
filename?: undefined | string;
};
width?: number;
scale?: number;
};
autoSelected?: "zoom" | "selection" | "pan";
};
zoom?: {
enabled?: boolean;
type?: "x" | "y" | "xy";
autoScaleYaxis?: boolean;
allowMouseWheelZoom?: boolean;
zoomedArea?: {
fill?: {
color?: string;
Expand Down Expand Up @@ -233,6 +236,7 @@ export type ApexAxisChartSeries = {
color?: string;
group?: string;
zIndex?: number;
hidden?: boolean;
data:
| (number | null)[]
| {
Expand Down
Loading

0 comments on commit ab4a08c

Please sign in to comment.