Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
series2.radiusAxis = this.radiusAxis;
series2.angleAxis = this.angleAxis;
series1.areaFillOpacity = 0.3;
series2.areaFillOpacity = 0.3;
series1.markerType = MarkerType.Circle;
series2.markerType = MarkerType.Circle;
series1.title = "Boat Speed";
series2.title = "Wind Speed";
this.chart.series.clear();
this.chart.series.add(series2);
this.chart.series.add(series1);
} else if (seriesType === "Spline") {
// creating a series with mapping to data columns of wind pattern
const series1 = new IgxPolarSplineSeriesComponent();
series1.name = "series1";
series1.angleMemberPath = "Direction";
series1.radiusMemberPath = "BoatSpeed";
series1.radiusAxis = this.radiusAxis;
series1.angleAxis = this.angleAxis;
const series2 = new IgxPolarSplineSeriesComponent();
series2.name = "series2";
series2.angleMemberPath = "Direction";
series2.radiusMemberPath = "WindSpeed";
series2.radiusAxis = this.radiusAxis;
series2.angleAxis = this.angleAxis;
series1.markerType = MarkerType.Circle;
series2.markerType = MarkerType.Circle;
series1.title = "Boat Speed";
series2.title = "Wind Speed";
series2.markerType = MarkerType.Circle;
series1.title = "Boat Speed";
series2.title = "Wind Speed";
this.chart.series.clear();
this.chart.series.add(series2);
this.chart.series.add(series1);
} else if (seriesType === "Spline") {
// creating a series with mapping to data columns of wind pattern
const series1 = new IgxPolarSplineSeriesComponent();
series1.name = "series1";
series1.angleMemberPath = "Direction";
series1.radiusMemberPath = "BoatSpeed";
series1.radiusAxis = this.radiusAxis;
series1.angleAxis = this.angleAxis;
const series2 = new IgxPolarSplineSeriesComponent();
series2.name = "series2";
series2.angleMemberPath = "Direction";
series2.radiusMemberPath = "WindSpeed";
series2.radiusAxis = this.radiusAxis;
series2.angleAxis = this.angleAxis;
series1.markerType = MarkerType.Circle;
series2.markerType = MarkerType.Circle;
series1.title = "Boat Speed";
series2.title = "Wind Speed";
this.chart.series.clear();
this.chart.series.add(series2);
this.chart.series.add(series1);
} else if (seriesType === "Line") {
// creating a series with mapping to data columns of wind pattern