Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
series1.angleAxis = this.angleAxis;
const series2 = new IgxRadialLineSeriesComponent();
series2.name = "series2";
series2.valueMemberPath = "Spending";
series2.valueAxis = this.radiusAxis;
series2.angleAxis = this.angleAxis;
series1.title = "Budget";
series2.title = "Spending";
this.chart.series.clear();
this.chart.series.add(series1);
this.chart.series.add(series2);
} else if (seriesType === "Column") {
// creating a series with mapping to data columns of financial data
const series1 = new IgxRadialColumnSeriesComponent();
series1.name = "series1";
series1.valueMemberPath = "Budget";
series1.valueAxis = this.radiusAxis;
series1.angleAxis = this.angleAxis;
const series2 = new IgxRadialColumnSeriesComponent();
series2.name = "series2";
series2.valueMemberPath = "Spending";
series2.valueAxis = this.radiusAxis;
series2.angleAxis = this.angleAxis;
series1.title = "Budget";
series2.title = "Spending";
this.chart.series.clear();
this.chart.series.add(series1);
this.chart.series.add(series2);
}
series2.angleAxis = this.angleAxis;
series1.title = "Budget";
series2.title = "Spending";
this.chart.series.clear();
this.chart.series.add(series1);
this.chart.series.add(series2);
} else if (seriesType === "Column") {
// creating a series with mapping to data columns of financial data
const series1 = new IgxRadialColumnSeriesComponent();
series1.name = "series1";
series1.valueMemberPath = "Budget";
series1.valueAxis = this.radiusAxis;
series1.angleAxis = this.angleAxis;
const series2 = new IgxRadialColumnSeriesComponent();
series2.name = "series2";
series2.valueMemberPath = "Spending";
series2.valueAxis = this.radiusAxis;
series2.angleAxis = this.angleAxis;
series1.title = "Budget";
series2.title = "Spending";
this.chart.series.clear();
this.chart.series.add(series1);
this.chart.series.add(series2);
}
}
}