Polar Chart in Vue Component

14 Oct 202424 minutes to read

Polar chart

To render a polar series in your chart, you need to follow a few steps to configure it correctly. Here’s a concise guide on how to do this:

  • Set the series type: Define the series type as Polar in your chart configuration. This indicates that the data should be represented as a polar chart, which is ideal for plotting data points on a circular graph.

  • Inject the PolarSeries module: Use the provide: { chart: [PolarSeries]} method to inject the PolarSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2005, y: 28 }, 
  { x: 2006, y: 25 },
  { x: 2007, y: 26 }, 
  { x: 2008, y: 27 },
  { x: 2009, y: 32 }, 
  { x: 2010, y: 35 }, 
  { x: 2011, y: 30 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 2005, 
  maximum: 2011, 
  interval: 1
};
const primaryYAxis = {
  minimum: 0, 
  maximum: 40, 
  interval: 10,
  title: 'Efficiency',
  labelFormat: '{value}%'
};
const title = "Efficiency of oil-fired power production";

provide('chart', [PolarSeries, LineSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2005, y: 28 }, 
        { x: 2006, y: 25 },
        { x: 2007, y: 26 }, 
        { x: 2008, y: 27 },
        { x: 2009, y: 32 }, 
        { x: 2010, y: 35 }, 
        { x: 2011, y: 30 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 2005, 
        maximum: 2011, 
        interval: 1
      },
      primaryYAxis: {
        minimum: 0, 
        maximum: 40, 
        interval: 10,
        title: 'Efficiency',
        labelFormat: '{value}%'
      },
      title: "Efficiency of oil-fired power production"
    };
  },
  provide: {
    chart: [PolarSeries, LineSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Binding data with series

You can bind data to the chart using the dataSource property within the series configuration. This allows you to connect a JSON dataset or remote data to your chart. To display the data correctly, map the fields from the data to the chart series xName and yName properties.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2005, y: 28 }, 
  { x: 2006, y: 25 },
  { x: 2007, y: 26 }, 
  { x: 2008, y: 27 },
  { x: 2009, y: 32 }, 
  { x: 2010, y: 35 }, 
  { x: 2011, y: 30 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 2005, 
  maximum: 2011, 
  interval: 1
};
const primaryYAxis = {
  minimum: 0, 
  maximum: 40, 
  interval: 10,
  title: 'Efficiency',
  labelFormat: '{value}%'
};
const title = "Efficiency of oil-fired power production";

provide('chart', [PolarSeries, LineSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2005, y: 28 }, 
        { x: 2006, y: 25 },
        { x: 2007, y: 26 }, 
        { x: 2008, y: 27 },
        { x: 2009, y: 32 }, 
        { x: 2010, y: 35 }, 
        { x: 2011, y: 30 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 2005, 
        maximum: 2011, 
        interval: 1
      },
      primaryYAxis: {
        minimum: 0, 
        maximum: 40, 
        interval: 10,
        title: 'Efficiency',
        labelFormat: '{value}%'
      },
      title: "Efficiency of oil-fired power production"
    };
  },
  provide: {
    chart: [PolarSeries, LineSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Draw types

Use the drawType property to change the series plotting type in a Polar chart to line, column, area, range column, spline, scatter, stacking area, spline area, or stacking column. The default value of drawType is Line.

Line

To render a line draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as Line in your chart configuration. This indicates that the data should be represented as a polar line chart, with lines connecting each data point.

  • Inject the LineSeries module: Use the provide: { chart: [LineSeries]} method to inject the LineSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar line series are available in your chart.

The isClosed property specifies whether to join the start and end points of a line series used in a polar chart to form a closed path. The default value of isClosed is true.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2005, y: 28 }, 
  { x: 2006, y: 25 },
  { x: 2007, y: 26 }, 
  { x: 2008, y: 27 },
  { x: 2009, y: 32 }, 
  { x: 2010, y: 35 }, 
  { x: 2011, y: 30 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 2005, 
  maximum: 2011, 
  interval: 1
};
const primaryYAxis = {
  minimum: 0, 
  maximum: 40, 
  interval: 10,
  title: 'Efficiency',
  labelFormat: '{value}%'
};
const title = "Efficiency of oil-fired power production";

provide('chart', [PolarSeries, LineSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2005, y: 28 }, 
        { x: 2006, y: 25 },
        { x: 2007, y: 26 }, 
        { x: 2008, y: 27 },
        { x: 2009, y: 32 }, 
        { x: 2010, y: 35 }, 
        { x: 2011, y: 30 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 2005, 
        maximum: 2011, 
        interval: 1
      },
      primaryYAxis: {
        minimum: 0, 
        maximum: 40, 
        interval: 10,
        title: 'Efficiency',
        labelFormat: '{value}%'
      },
      title: "Efficiency of oil-fired power production"
    };
  },
  provide: {
    chart: [PolarSeries, LineSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Spline

To render a spline draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as Spline in your chart configuration. This indicates that the data should be represented as a polar spline chart, with smooth, curved lines connecting each data point.

  • Inject the SplineSeries module: Use the provide: { chart: [SplineSeries]} method to inject the SplineSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar spline series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Spline' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, SplineSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
  { x: 'Mar', y: 2 },  { x: 'Apr', y: 8 },
  { x: 'May', y: 13 }, { x: 'Jun', y: 18 },
  { x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
  { x: 'Sep', y: 16 }, { x: 'Oct', y: 10 },
  { x: 'Nov', y: 4 },  { x: 'Dec', y: 0 }
];
const primaryXAxis = {
  title: 'Month',
  valueType: 'Category'
};
const primaryYAxis = {
  minimum: -5, maximum: 25, interval: 5,
  title: 'Temperature in Celsius',
  labelFormat: '{value}°C'
};
const title = "Climate Graph - 2012";

provide('chart', [PolarSeries, SplineSeries, Category]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Spline' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, SplineSeries, Category } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
        { x: 'Mar', y: 2 },  { x: 'Apr', y: 8 },
        { x: 'May', y: 13 }, { x: 'Jun', y: 18 },
        { x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
        { x: 'Sep', y: 16 }, { x: 'Oct', y: 10 },
        { x: 'Nov', y: 4 },  { x: 'Dec', y: 0 }
      ],
      primaryXAxis: {
        title: 'Month',
        valueType: 'Category'
      },
      primaryYAxis: {
        minimum: -5, maximum: 25, interval: 5,
        title: 'Temperature in Celsius',
        labelFormat: '{value}°C'
      },
      title: "Climate Graph - 2012"
    };
  },
  provide: {
    chart: [PolarSeries, SplineSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Area

To render an area draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as Area in your chart configuration. This indicates that the data should be represented as a polar area chart, with filled areas below the lines connecting each data point.

  • Inject the AreaSeries module: Use the provide: { chart: [AreaSeries]} method to inject the AreaSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar area series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Area' fill='#69D2E7'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, AreaSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 1900, y: 4 }, 
  { x: 1920, y: 3.0 },
  { x: 1940, y: 3.8 },
  { x: 1960, y: 3.4 }, 
  { x: 1980, y: 3.2 }, 
  { x: 2000, y: 3.9 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 1900, 
  maximum: 2000, 
  interval: 10
};
const primaryYAxis = {
  minimum: 2, maximum: 5, interval: 0.5,
  title: 'Sales Amount in Millions'
};
const title = "Average Sales Comparison";

provide('chart', [PolarSeries, AreaSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Area' fill='#69D2E7'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, AreaSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 1900, y: 4 }, 
        { x: 1920, y: 3.0 },
        { x: 1940, y: 3.8 },
        { x: 1960, y: 3.4 }, 
        { x: 1980, y: 3.2 }, 
        { x: 2000, y: 3.9 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 1900, 
        maximum: 2000, 
        interval: 10
      },
      primaryYAxis: {
        minimum: 2, maximum: 5, interval: 0.5,
        title: 'Sales Amount in Millions'
      },
      title: "Average Sales Comparison"
    };
  },
  provide: {
    chart: [PolarSeries, AreaSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Stacked area

To render a stacked area draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as StackingArea in your chart configuration. This indicates that the data should be represented as a polar stacked area chart, with areas stacked on top of each other, displaying the cumulative value of multiple series.

  • Inject the StackingAreaSeries module: Use the provide: { chart: [StackingAreaSeries]} method to inject the StackingAreaSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar stacked area series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='StackingArea' name='Organic'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y1' drawType='StackingArea' name='Fair-trade'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y2' drawType='StackingArea' name='Veg Alternatives'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, StackingAreaSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2000, y: 0.61, y1: 0.03, y2: 0.48 }, 
  { x: 2001, y: 0.81, y1: 0.05, y2: 0.53 },
  { x: 2002, y: 0.91, y1: 0.06, y2: 0.57 },
  { x: 2003, y: 1,    y1: 0.09, y2: 0.61 }, 
  { x: 2004, y: 1.19, y1: 0.14, y2: 0.63 },
  { x: 2005, y: 1.47, y1: 0.20, y2: 0.64 },
  { x: 2006, y: 1.74, y1: 0.29, y2: 0.66 }, 
  { x: 2007, y: 1.98, y1: 0.46, y2: 0.76 },
  { x: 2008, y: 1.99, y1: 0.64, y2: 0.77 },
  { x: 2009, y: 1.70, y1: 0.75, y2: 0.55 }
];
const primaryXAxis = {
  title: 'Years',
  minimum: 2000,
  maximum: 2009,
  interval: 1,
  majorTickLines: { width: 0 },
  edgeLabelPlacement: 'Shift'
};
const primaryYAxis = {
  title: 'Spend in Billions',
  minimum: 0,
  maximum: 4,
  interval: 1,
  majorTickLines: { width: 0 },
  labelFormat: '{value}B'
};
const title = "Trend in Sales of Ethical Produce";

provide('chart', [PolarSeries, StackingAreaSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='StackingArea' name='Organic'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y1' drawType='StackingArea' name='Fair-trade'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y2' drawType='StackingArea' name='Veg Alternatives'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, StackingAreaSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2000, y: 0.61, y1: 0.03, y2: 0.48 }, 
        { x: 2001, y: 0.81, y1: 0.05, y2: 0.53 },
        { x: 2002, y: 0.91, y1: 0.06, y2: 0.57 },
        { x: 2003, y: 1,    y1: 0.09, y2: 0.61 }, 
        { x: 2004, y: 1.19, y1: 0.14, y2: 0.63 },
        { x: 2005, y: 1.47, y1: 0.20, y2: 0.64 },
        { x: 2006, y: 1.74, y1: 0.29, y2: 0.66 }, 
        { x: 2007, y: 1.98, y1: 0.46, y2: 0.76 },
        { x: 2008, y: 1.99, y1: 0.64, y2: 0.77 },
        { x: 2009, y: 1.70, y1: 0.75, y2: 0.55 }
      ],
      primaryXAxis: {
        title: 'Years',
        minimum: 2000,
        maximum: 2009,
        interval: 1,
        majorTickLines: { width: 0 },
        edgeLabelPlacement: 'Shift'
      },
      primaryYAxis: {
        title: 'Spend in Billions',
        minimum: 0,
        maximum: 4,
        interval: 1,
        majorTickLines: { width: 0 },
        labelFormat: '{value}B'
      },
      title: "Trend in Sales of Ethical Produce"
    };
  },
  provide: {
    chart: [PolarSeries, StackingAreaSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Column

To render a column draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as Column in your chart configuration. This indicates that the data should be represented as a polar column chart, allowing for the comparison of values across categories.

  • Inject the ColumnSeries module: Use the provide: { chart: [ColumnSeries]} method to inject the ColumnSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar column series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='country' yName='gold' drawType='Column'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, Category, ColumnSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { country: "USA",       gold: 50 },
  { country: "China",     gold: 40 },
  { country: "Japan",     gold: 70 },
  { country: "Australia", gold: 60 },
  { country: "France",    gold: 50 },
  { country: "Germany",   gold: 40 },
  { country: "Italy",     gold: 40 },
  { country: "Sweden",    gold: 30 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Countries'
};
const primaryYAxis = {
  minimum: 0, maximum: 80,
  interval: 20, title: 'Medals'
};
const title = "Olympic Medals";

provide('chart', [PolarSeries, Category, ColumnSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='country' yName='gold' drawType='Column'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, Category, ColumnSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { country: "USA",       gold: 50 },
        { country: "China",     gold: 40 },
        { country: "Japan",     gold: 70 },
        { country: "Australia", gold: 60 },
        { country: "France",    gold: 50 },
        { country: "Germany",   gold: 40 },
        { country: "Italy",     gold: 40 },
        { country: "Sweden",    gold: 30 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Countries'
      },
      primaryYAxis: {
        minimum: 0, maximum: 80,
        interval: 20, title: 'Medals'
      },
      title: "Olympic Medals"
    };
  },
  provide: {
    chart: [PolarSeries, Category, ColumnSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Stacked column

To render a stacked column draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as StackingColumn in your chart configuration. This indicates that the data should be represented as a polar stacked column chart, with each column consisting of multiple segments stacked on top of each other.

  • Inject the StackingColumnSeries module: Use the provide: { chart: [StackingColumnSeries]} method to inject the StackingColumnSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar stacked column series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container">
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='StackingColumn'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y1' drawType='StackingColumn'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y2' drawType='StackingColumn'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y3' drawType='StackingColumn'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, StackingColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2000, y: 0.61, y1: 0.03, y2: 0.48},
  { x: 2001, y: 0.81, y1: 0.05, y2: 0.53 },
  { x: 2002, y: 0.91, y1: 0.06, y2: 0.57 },
  { x: 2003, y: 1,    y1: 0.09, y2: 0.61 }, 
  { x: 2004, y: 1.19, y1: 0.14, y2: 0.63 },
  { x: 2005, y: 1.47, y1: 0.20, y2: 0.64 },
  { x: 2006, y: 1.74, y1: 0.29, y2: 0.66 }, 
  { x: 2007, y: 1.98, y1: 0.46, y2: 0.76 },
  { x: 2008, y: 1.99, y1: 0.64, y2: 0.77 },
  { x: 2009, y: 1.70, y1: 0.75, y2: 0.55 }
];

provide('chart', [PolarSeries, StackingColumnSeries, Category]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container">
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='StackingColumn'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y1' drawType='StackingColumn'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y2' drawType='StackingColumn'> </e-series>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y3' drawType='StackingColumn'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, StackingColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2000, y: 0.61, y1: 0.03, y2: 0.48},
        { x: 2001, y: 0.81, y1: 0.05, y2: 0.53 },
        { x: 2002, y: 0.91, y1: 0.06, y2: 0.57 },
        { x: 2003, y: 1,    y1: 0.09, y2: 0.61 }, 
        { x: 2004, y: 1.19, y1: 0.14, y2: 0.63 },
        { x: 2005, y: 1.47, y1: 0.20, y2: 0.64 },
        { x: 2006, y: 1.74, y1: 0.29, y2: 0.66 }, 
        { x: 2007, y: 1.98, y1: 0.46, y2: 0.76 },
        { x: 2008, y: 1.99, y1: 0.64, y2: 0.77 },
        { x: 2009, y: 1.70, y1: 0.75, y2: 0.55 }
      ]
    };
  },
  provide: {
    chart: [PolarSeries, StackingColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Range column

To render a range column draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as RangeColumn in your chart configuration. This indicates that the data should be represented as a polar range column chart, where each column spans a range of values.

  • Inject the RangeColumnSeries module: Use the provide: { chart: [RangeColumnSeries]} method to inject the RangeColumnSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar range column series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' high='high' low='low' drawType='RangeColumn'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 'Jan', low: 0.7,  high: 6.1 }, 
  { x: 'Feb', low: 1.3,  high: 6.3 }, 
  { x: 'Mar', low: 1.9,  high: 8.5 },
  { x: 'Apr', low: 3.1,  high: 10.8 }, 
  { x: 'May', low: 5.7,  high: 14.40 }, 
  { x: 'Jun', low: 8.4,  high: 16.90 },
  { x: 'Jul', low: 10.6, high: 19.20 }, 
  { x: 'Aug', low: 10.5, high: 18.9 }, 
  { x: 'Sep', low: 8.5,  high: 16.1 },
  { x: 'Oct', low: 6.0,  high: 12.5 }, 
  { x: 'Nov', low: 1.5,  high: 6.9  }, 
  { x: 'Dec', low: 5.1,  high: 12.1 }
];
const primaryXAxis = {
  valueType: 'Category'
};
const title = "Maximum and Minimum Temperature";

provide('chart', [PolarSeries, RangeColumnSeries, Category]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' high='high' low='low' drawType='RangeColumn'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 'Jan', low: 0.7,  high: 6.1 }, 
        { x: 'Feb', low: 1.3,  high: 6.3 }, 
        { x: 'Mar', low: 1.9,  high: 8.5 },
        { x: 'Apr', low: 3.1,  high: 10.8 }, 
        { x: 'May', low: 5.7,  high: 14.40 }, 
        { x: 'Jun', low: 8.4,  high: 16.90 },
        { x: 'Jul', low: 10.6, high: 19.20 }, 
        { x: 'Aug', low: 10.5, high: 18.9 }, 
        { x: 'Sep', low: 8.5,  high: 16.1 },
        { x: 'Oct', low: 6.0,  high: 12.5 }, 
        { x: 'Nov', low: 1.5,  high: 6.9  }, 
        { x: 'Dec', low: 5.1,  high: 12.1 }
      ],
      primaryXAxis: {
        valueType: 'Category'
      },
      title: "Maximum and Minimum Temperature"
    };
  },
  provide: {
    chart: [PolarSeries, RangeColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Scatter

To render a scatter draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as Scatter in your chart configuration. This indicates that the data should be represented as a polar scatter chart.

  • Inject the ScatterSeries module: Use the provide: { chart: [ScatterSeries]} method to inject the ScatterSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar scatter series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Scatter'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, ScatterSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 'Jan', y: -1 }, 
  { x: 'Feb', y: -1 }, 
  { x: 'Mar', y: 2 },
  { x: 'Apr', y: 8 }, 
  { x: 'May', y: 13 }, 
  { x: 'Jun', y: 18 }, 
  { x: 'Jul', y: 21 }, 
  { x: 'Aug', y: 20 }, 
  { x: 'Sep', y: 16 }, 
  { x: 'Oct', y: 10 }, 
  { x: 'Nov', y: 4 }, 
  { x: 'Dec', y: 0 }
];
const primaryXAxis = {
  valueType: 'Category'
};
const primaryYAxis = {
  labelFormat: '{value}°C'
};
const title = "Climate Graph - 2012";

provide('chart', [PolarSeries, ScatterSeries, Category]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Scatter'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, ScatterSeries, Category } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 'Jan', y: -1 }, 
        { x: 'Feb', y: -1 }, 
        { x: 'Mar', y: 2 },
        { x: 'Apr', y: 8 }, 
        { x: 'May', y: 13 }, 
        { x: 'Jun', y: 18 }, 
        { x: 'Jul', y: 21 }, 
        { x: 'Aug', y: 20 }, 
        { x: 'Sep', y: 16 }, 
        { x: 'Oct', y: 10 }, 
        { x: 'Nov', y: 4 }, 
        { x: 'Dec', y: 0 }
      ],
      primaryXAxis: {
        valueType: 'Category'
      },
      primaryYAxis: {
        labelFormat: '{value}°C'
      },
      title: "Climate Graph - 2012"
    };
  },
  provide: {
    chart: [PolarSeries, ScatterSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Spline area

To render an spline area draw type, you need to follow a few steps to configure it correctly.

  • Set the series type: Define the series drawType as SplineArea in your chart configuration. This indicates that the data should be represented as a polar spline area chart, where the series is drawn with smooth, curved lines connecting each data point, and the area beneath the line is filled with color.

  • Inject the SplineAreaSeries module: Use the provide: { chart: [SplineAreaSeries]} method to inject the SplineAreaSeries module into your chart. This step is essential, as it ensures that the necessary functionalities for rendering polar spline area series are available in your chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='SplineArea' fill='#69D2E7'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, SplineAreaSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 1900, y: 4 }, 
  { x: 1920, y: 3.0 },
  { x: 1940, y: 3.8 },
  { x: 1960, y: 3.4 }, 
  { x: 1980, y: 3.2 }, 
  { x: 2000, y: 3.9 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 1900, 
  maximum: 2000, 
  interval: 10
};
const primaryYAxis = {
  minimum: 2, maximum: 5, interval: 0.5,
  title: 'Sales Amount in Millions'
};
const title = "Average Sales Comparison";

provide('chart', [PolarSeries, SplineAreaSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='SplineArea' fill='#69D2E7'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, SplineAreaSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 1900, y: 4 }, 
        { x: 1920, y: 3.0 },
        { x: 1940, y: 3.8 },
        { x: 1960, y: 3.4 }, 
        { x: 1980, y: 3.2 }, 
        { x: 2000, y: 3.9 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 1900, 
        maximum: 2000, 
        interval: 10
      },
      primaryYAxis: {
        minimum: 2, maximum: 5, interval: 0.5,
        title: 'Sales Amount in Millions'
      },
      title: "Average Sales Comparison"
    };
  },
  provide: {
    chart: [PolarSeries, SplineAreaSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Series customization

Start angle

You can customize the start angle of the polar series using startAngle property. By default, startAngle is 0 degree.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='country' yName='gold' drawType='Column'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, ColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { country: "USA",       gold: 50 },
  { country: "China",     gold: 40 },
  { country: "Japan",     gold: 70 },
  { country: "Australia", gold: 60 },
  { country: "France",    gold: 50 },
  { country: "Germany",   gold: 40 },
  { country: "Italy",     gold: 40 },
  { country: "Sweden",    gold: 30 }
];
const primaryXAxis = {
  valueType: 'Category',
  startAngle: 90
};
const title = "Olympic Medals";

provide('chart', [PolarSeries, ColumnSeries, Category]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='country' yName='gold' drawType='Column'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, ColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { country: "USA",       gold: 50 },
        { country: "China",     gold: 40 },
        { country: "Japan",     gold: 70 },
        { country: "Australia", gold: 60 },
        { country: "France",    gold: 50 },
        { country: "Germany",   gold: 40 },
        { country: "Italy",     gold: 40 },
        { country: "Sweden",    gold: 30 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        startAngle: 90
      },
      title: "Olympic Medals"
    };
  },
  provide: {
    chart: [PolarSeries, ColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Radius

You can customize the radius of the polar series using coefficient property. By default, coefficient is 100.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='country' yName='gold' drawType='Column'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, ColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { country: "USA",       gold: 50 },
  { country: "China",     gold: 40 },
  { country: "Japan",     gold: 70 },
  { country: "Australia", gold: 60 },
  { country: "France",    gold: 50 },
  { country: "Germany",   gold: 40 },
  { country: "Italy",     gold: 40 },
  { country: "Sweden",    gold: 30 }
];
const primaryXAxis = {
  valueType: 'Category',
  coefficient: 80
};
const title = "Olympic Medals";

provide('chart', [PolarSeries, ColumnSeries, Category]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='country' yName='gold' drawType='Column'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, ColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { country: "USA",       gold: 50 },
        { country: "China",     gold: 40 },
        { country: "Japan",     gold: 70 },
        { country: "Australia", gold: 60 },
        { country: "France",    gold: 50 },
        { country: "Germany",   gold: 40 },
        { country: "Italy",     gold: 40 },
        { country: "Sweden",    gold: 30 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        coefficient: 80
      },
      title: "Olympic Medals"
    };
  },
  provide: {
    chart: [PolarSeries, ColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Empty points

Data points with null or undefined values are considered empty. Empty data points are ignored and not plotted on the chart.

Mode

Use the mode property to define how empty or missing data points are handled in the series. The default mode for empty points is Gap.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2 :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2005, y: 28 }, 
  { x: 2006, y: 25 }, 
  { x: 2007, y: 26 }, 
  { x: 2008, y: null },
  { x: 2009, y: 32 }, 
  { x: 2010, y: 35 }, 
  { x: 2011, y: 30 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 2005, 
  maximum: 2011, 
  interval: 1
};
const primaryYAxis = {
  minimum: 0, 
  maximum: 40, 
  interval: 10,
  title: 'Efficiency',
  labelFormat: '{value}%'
};
const title = "Efficiency of oil-fired power production";
const emptyPointSettings = {
  mode: 'Zero'
};

provide('chart', [PolarSeries, LineSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2 :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2005, y: 28 }, 
        { x: 2006, y: 25 }, 
        { x: 2007, y: 26 }, 
        { x: 2008, y: null },
        { x: 2009, y: 32 }, 
        { x: 2010, y: 35 }, 
        { x: 2011, y: 30 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 2005, 
        maximum: 2011, 
        interval: 1
      },
      primaryYAxis: {
        minimum: 0, 
        maximum: 40, 
        interval: 10,
        title: 'Efficiency',
        labelFormat: '{value}%'
      },
      title: "Efficiency of oil-fired power production",
      emptyPointSettings: {
        mode: 'Zero'
      }
    };
  },
  provide: {
    chart: [PolarSeries, LineSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Fill

Use the fill property to customize the fill color of empty points in the series.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2 :marker='marker' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2005, y: 28 }, 
  { x: 2006, y: 25 }, 
  { x: 2007, y: 26 }, 
  { x: 2008, y: null },
  { x: 2009, y: 32 }, 
  { x: 2010, y: 35 }, 
  { x: 2011, y: 30 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 2005, 
  maximum: 2011, 
  interval: 1
};
const primaryYAxis = {
  minimum: 0, 
  maximum: 40, 
  interval: 10,
  title: 'Efficiency',
  labelFormat: '{value}%'
};
const title = "Efficiency of oil-fired power production";
const emptyPointSettings = {
  mode: 'Zero',
  fill: 'red'
};
const marker = { 
  visible: true, 
  width: 7, 
  height: 7, 
  isFilled: true 
};

provide('chart', [PolarSeries, LineSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2 :marker='marker' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2005, y: 28 }, 
        { x: 2006, y: 25 }, 
        { x: 2007, y: 26 }, 
        { x: 2008, y: null },
        { x: 2009, y: 32 }, 
        { x: 2010, y: 35 }, 
        { x: 2011, y: 30 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 2005, 
        maximum: 2011, 
        interval: 1
      },
      primaryYAxis: {
        minimum: 0, 
        maximum: 40, 
        interval: 10,
        title: 'Efficiency',
        labelFormat: '{value}%'
      },
      title: "Efficiency of oil-fired power production",
      emptyPointSettings: {
        mode: 'Zero',
        fill: 'red'
      },
      marker: { visible: true, width: 7, height: 7, isFilled: true }
    };
  },
  provide: {
    chart: [PolarSeries, LineSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Border

Use the border property to customize the width and color of the border for empty points.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2 :marker='marker' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2005, y: 28 }, 
  { x: 2006, y: 25 }, 
  { x: 2007, y: 26 }, 
  { x: 2008, y: null },
  { x: 2009, y: 32 }, 
  { x: 2010, y: 35 }, 
  { x: 2011, y: 30 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 2005, 
  maximum: 2011, 
  interval: 1
};
const primaryYAxis = {
  minimum: 0, 
  maximum: 40, 
  interval: 10,
  title: 'Efficiency',
  labelFormat: '{value}%'
};
const title = "Efficiency of oil-fired power production";
const emptyPointSettings = {
  mode: 'Zero',
  fill: 'red',
  border: { width: 2, color: 'blue' }
};
const marker = { 
  visible: true, 
  width: 7, 
  height: 7, 
  isFilled: true 
};

provide('chart', [PolarSeries, LineSeries]);

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2 :marker='marker' :emptyPointSettings='emptyPointSettings'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2005, y: 28 }, 
        { x: 2006, y: 25 }, 
        { x: 2007, y: 26 }, 
        { x: 2008, y: null },
        { x: 2009, y: 32 }, 
        { x: 2010, y: 35 }, 
        { x: 2011, y: 30 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 2005, 
        maximum: 2011, 
        interval: 1
      },
      primaryYAxis: {
        minimum: 0, 
        maximum: 40, 
        interval: 10,
        title: 'Efficiency',
        labelFormat: '{value}%'
      },
      title: "Efficiency of oil-fired power production",
      emptyPointSettings: {
        mode: 'Zero',
        fill: 'red',
        border: { width: 2, color: 'blue' }
      },
      marker: { visible: true, width: 7, height: 7, isFilled: true }
    };
  },
  provide: {
    chart: [PolarSeries, LineSeries]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Events

Series render

The seriesRender event allows you to customize series properties, such as data, fill, and name, before they are rendered on the chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :seriesRender='seriesRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2005, y: 28 }, 
  { x: 2006, y: 25 },
  { x: 2007, y: 26 }, 
  { x: 2008, y: 27 },
  { x: 2009, y: 32 }, 
  { x: 2010, y: 35 }, 
  { x: 2011, y: 30 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 2005, 
  maximum: 2011, 
  interval: 1
};
const primaryYAxis = {
  minimum: 0, 
  maximum: 40, 
  interval: 10,
  title: 'Efficiency',
  labelFormat: '{value}%'
};
const title = "Efficiency of oil-fired power production";

provide('chart', [PolarSeries, LineSeries]);
const seriesRender = function (args) {
  args.fill = '#ff6347';
};

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :seriesRender='seriesRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2005, y: 28 }, 
        { x: 2006, y: 25 },
        { x: 2007, y: 26 }, 
        { x: 2008, y: 27 },
        { x: 2009, y: 32 }, 
        { x: 2010, y: 35 }, 
        { x: 2011, y: 30 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 2005, 
        maximum: 2011, 
        interval: 1
      },
      primaryYAxis: {
        minimum: 0, 
        maximum: 40, 
        interval: 10,
        title: 'Efficiency',
        labelFormat: '{value}%'
      },
      title: "Efficiency of oil-fired power production"
    };
  },
  provide: {
    chart: [PolarSeries, LineSeries]
  },
  methods: {
    seriesRender: function (args) {
      args.fill = '#ff6347';
    }
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Point render

The pointRender event allows you to customize each data point before it is rendered on the chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :pointRender='pointRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2 :marker='marker'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script setup>
import { provide } from "vue";
import { ChartComponent as EjsChart, SeriesCollectionDirective as ESeriesCollection, SeriesDirective as ESeries, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

const seriesData = [
  { x: 2005, y: 28 }, 
  { x: 2006, y: 25 },
  { x: 2007, y: 26 }, 
  { x: 2008, y: 27 },
  { x: 2009, y: 32 }, 
  { x: 2010, y: 35 }, 
  { x: 2011, y: 30 }
];
const primaryXAxis = {
  title: 'Year',
  minimum: 2005, 
  maximum: 2011, 
  interval: 1
};
const primaryYAxis = {
  minimum: 0, 
  maximum: 40, 
  interval: 10,
  title: 'Efficiency',
  labelFormat: '{value}%'
};
const title = "Efficiency of oil-fired power production";
const marker = { visible: true };

provide('chart', [PolarSeries, LineSeries]);
const pointRender = function (args) {
  if (args.point.index % 2 !== 0) {
    args.fill = '#ff6347';
  }
  else {
    args.fill = '#009cb8';
  }
};

</script>
<style>
  #container {
    height: 350px;
  }
</style>
<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :pointRender='pointRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData' type='Polar' xName='x' yName='y' drawType='Line' width=2 :marker='marker'> </e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, PolarSeries, LineSeries } from "@syncfusion/ej2-vue-charts";

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData: [
        { x: 2005, y: 28 }, 
        { x: 2006, y: 25 },
        { x: 2007, y: 26 }, 
        { x: 2008, y: 27 },
        { x: 2009, y: 32 }, 
        { x: 2010, y: 35 }, 
        { x: 2011, y: 30 }
      ],
      primaryXAxis: {
        title: 'Year',
        minimum: 2005, 
        maximum: 2011, 
        interval: 1
      },
      primaryYAxis: {
        minimum: 0, 
        maximum: 40, 
        interval: 10,
        title: 'Efficiency',
        labelFormat: '{value}%'
      },
      title: "Efficiency of oil-fired power production",
      marker: { visible: true }
    };
  },
  provide: {
    chart: [PolarSeries, LineSeries]
  },
  methods: {
    pointRender: function (args) {
      if (args.point.index % 2 !== 0) {
        args.fill = '#ff6347';
      }
      else {
        args.fill = '#009cb8';
      }
    }
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

See also