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 IgxRadialAreaSeriesComponent();
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 === "Pie") {
// creating a series with mapping to data columns of financial data
const series1 = new IgxRadialPieSeriesComponent();
series1.name = "series1";
series1.valueMemberPath = "Budget";
series1.valueAxis = this.radiusAxis;
series1.angleAxis = this.angleAxis;
const series2 = new IgxRadialPieSeriesComponent();
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 === "Pie") {
// creating a series with mapping to data columns of financial data
const series1 = new IgxRadialPieSeriesComponent();
series1.name = "series1";
series1.valueMemberPath = "Budget";
series1.valueAxis = this.radiusAxis;
series1.angleAxis = this.angleAxis;
const series2 = new IgxRadialPieSeriesComponent();
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 === "Line") {
// creating a series with mapping to data columns of financial data
const series1 = new IgxRadialLineSeriesComponent();
series1.name = "series1";
series1.valueMemberPath = "Budget";