Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class SiChartCircleComponent extends SiChartComponent {
: 0;
const top = 32 + offset;
this.series()?.forEach(series => {
const s: any = Object.assign({ type: 'pie', top }, series);
const s: PieSeriesOption = { type: 'pie', top, ...series };
optionSeries.push(s);
if (this.showLegend()) {
series.data.forEach(data => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@

private readonly locale = inject(LOCALE_ID).toString();
private readonly actualMinNumberOfDecimals = computed(
() => this.numberOfDecimals() ?? this.minNumberOfDecimals()

Check warning on line 92 in projects/charts-ng/src/components/si-chart-gauge/si-chart-gauge.component.ts

View workflow job for this annotation

GitHub Actions / test

`numberOfDecimals` is deprecated. Use `minNumberOfDecimals` and `maxNumberOfDecimals` instead
);
private readonly actualMaxNumberOfDecimals = computed(
() => this.numberOfDecimals() ?? this.maxNumberOfDecimals()

Check warning on line 95 in projects/charts-ng/src/components/si-chart-gauge/si-chart-gauge.component.ts

View workflow job for this annotation

GitHub Actions / test

`numberOfDecimals` is deprecated. Use `minNumberOfDecimals` and `maxNumberOfDecimals` instead
);
private readonly numberFormat = computed(() => {
const minDecimals = this.actualMinNumberOfDecimals();
Expand Down Expand Up @@ -123,7 +123,7 @@
const colors: string[] = this.colors() ?? effectiveOpts.color;
const hasIndicator = !!this.segments().length;

let newColors: any[];
let newColors: [number, string][];
if (hasIndicator) {
newColors = this.segments().map((threshold, index) => {
const color = colors[index % colors.length];
Expand All @@ -146,7 +146,7 @@
this.refreshSeries();
}

private setAxisLineColor(colors: any[], axisLine: any): void {
private setAxisLineColor(colors: [number, string][], axisLine: any): void {
axisLine.lineStyle = axisLine.lineStyle ?? {};
axisLine.lineStyle.color = colors;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
protected override applyOptions(): void {
const series = this.series();
this.actualOptions = {
series: series ? (Object.assign({ type: 'sankey' }, series) as any) : [],
series: series ? [{ type: 'sankey', ...series }] : [],
tooltip: { show: this.toolTip() || this.tooltip() }

Check warning on line 33 in projects/charts-ng/src/components/si-chart-sankey/si-chart-sankey.component.ts

View workflow job for this annotation

GitHub Actions / test

`toolTip` is deprecated. Use `tooltip` instead
};

this.applyTitles();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
protected override applyOptions(): void {
const series = this.series();
this.actualOptions = {
series: series ? (Object.assign({ type: 'sunburst' }, series) as any) : [],
series: series ? [{ type: 'sunburst', ...series }] : [],
tooltip: { show: this.toolTip() || this.tooltip() }

Check warning on line 33 in projects/charts-ng/src/components/si-chart-sunburst/si-chart-sunburst.component.ts

View workflow job for this annotation

GitHub Actions / test

`toolTip` is deprecated. Use `tooltip` instead
};

this.applyTitles();
Expand Down
Loading