Range column Chart in Vue Component

7 Apr 202524 minutes to read

Range column

To render a range column 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 RangeColumn in your chart configuration. This indicates that the data should be represented as a range column chart, which is ideal for visualizing data that has both minimum and maximum values for each category. This is especially useful for visualizing data ranges, such as temperature fluctuations over time, stock prices, or any other data with upper and lower bounds.

  • 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 range column series are available in your chart.

  • Provide high and low values: The RangeColumn series requires two y-values for each data point, you need to specify both the high and low values. The high value represents the maximum range, while the low value represents the minimum range for each data point. These values define the upper and lower boundaries of the column for each point on the chart.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  }
};
</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, high, and low properties.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Series customization

The following properties can be used to customize the range column series.

Fill

The fill property determines the color applied to the series.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData1' type='RangeColumn' xName='x' low='low' high='high' fill='blue'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' fill='violet'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' fill='blue'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' fill='violet'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

The fill property can be used to apply a gradient color to the range column series. By configuring this property with gradient values, you can create a visually appealing effect in which the color transitions smoothly from one shade to another.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData1' type='RangeColumn' xName='x' low='low' high='high' fill='url(#gradient1)'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' fill='url(#gradient2)'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' fill='url(#gradient1)'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' fill='url(#gradient2)'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Opacity

The opacity property specifies the transparency level of the fill. Adjusting this property allows you to control how opaque or transparent the fill color of the series appears.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData1' type='RangeColumn' xName='x' low='low' high='high' opacity=0.7></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' opacity=0.7></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' opacity=0.7></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' opacity=0.7></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Border

Use the border property to customize the width, color and dash array of the series border.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis'>
      <e-series-collection>
        <e-series :dataSource='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :border='border'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :border='border1'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';
const border = { 
  width: 2, 
  color: '#ff4251',
  dashArray: "5,5"
};
const border1 = { 
  width: 2, 
  color: '#DCDCDC' 
};

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :border='border'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :border='border1'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature',
      border: { 
        width: 2, 
        color: '#ff4251' 
      },
      border1: { 
        width: 2, 
        color: '#DCDCDC',
        dashArray: "5,5"
      }
    };
  },
  provide: {
    chart: [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings1'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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: null, 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: undefined, 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: null },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: undefined }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';
const emptyPointSettings = {
  mode: 'Average'
};
const emptyPointSettings1 = {
  mode: 'Gap'
};

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings1'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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: null, 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: undefined, 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: null },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: undefined }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature',
      emptyPointSettings: {
        mode: 'Average'
      },
      emptyPointSettings1: {
        mode: 'Gap'
      }
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  }
};
</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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings1'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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: null, 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: undefined, 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: null },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: undefined }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';
const emptyPointSettings = {
  mode: 'Average',
  fill: 'red'
};
const emptyPointSettings1 = {
  mode: 'Gap'
};

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings1'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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: null, 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: undefined, 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: null },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: undefined }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature',
      emptyPointSettings: {
        mode: 'Average',
        fill: 'red'
      },
      emptyPointSettings1: {
        mode: 'Gap'
      }
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  }
};
</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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings1'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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: null, 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: undefined, 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: null },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: undefined }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';
const emptyPointSettings = {
  mode: 'Average',
  fill: 'red',
  border: { 
    width: 2, 
    color: 'green' 
  }
};
const emptyPointSettings1 = {
  mode: 'Gap'
};

provide('chart', [RangeColumnSeries, 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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :emptyPointSettings='emptyPointSettings1'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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: null, 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: undefined, 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: null },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: undefined }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature',
      emptyPointSettings: {
        mode: 'Average',
        fill: 'red',
        border: { 
          width: 2, 
          color: 'green' 
        }
      },
      emptyPointSettings1: {
        mode: 'Gap'
      }
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Corner radius

The cornerRadius property in the chart series is used to customize the corner radius for bar series. This allows you to create bars with rounded corners, giving your chart a more polished appearance. You can customize each corner of the bars using the topLeft, topRight, bottomLeft, and bottomRight properties.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :pointRender='pointRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :cornerRadius = 'cornerRadius'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :cornerRadius = 'cornerRadius'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';
const cornerRadius = {topRight: 10 , topLeft: 10};
provide('chart', [RangeColumnSeries, Category]);

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='seriesData1' type='RangeColumn' xName='x' low='low' high='high' :cornerRadius = 'cornerRadius'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high' :cornerRadius = 'cornerRadius'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      cornerRadius: {topLeft: 10, bottomLeft: 10, topRight: 10, bottomRight: 10},
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  },
  methods: {
    pointRender: function (args) {
      if (args.point.index % 2 !== 0) {
          args.fill = '#ff6347';
      }
      else {
          args.fill = '#009cb8';
      }
    }
  }
};
</script>
<style>
  #container {
    height: 350px;
  }
</style>

Point corner radius

We can customize the corner radius for individual points in the chart series using the pointRender event by setting the cornerRadius property in its event argument.

<template>
  <div id="app">
    <ejs-chart id="container" :title='title' :primaryXAxis='primaryXAxis' :primaryYAxis='primaryYAxis' :pointRender='pointRender'>
      <e-series-collection>
        <e-series :dataSource='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';

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

const pointRender = function (args) {
  if (args.point.index === 1) {
    args.cornerRadius = { topLeft: 10, bottomLeft: 10, topRight: 10, bottomRight: 10 };
  }
  if (args.point.index === 4) {
    args.cornerRadius = { topLeft: 10, bottomLeft: 10, topRight: 10, bottomRight: 10 };
  }
};

</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='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  },
  methods: {
    pointRender: function (args) {
      if (args.point.index === 1) {
        args.cornerRadius = { topLeft: 10, bottomLeft: 10, topRight: 10, bottomRight: 10 };
      }
      if (args.point.index === 4) {
        args.cornerRadius = { topLeft: 10, bottomLeft: 10, topRight: 10, bottomRight: 10 };
      }
    }
  }
};
</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='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';

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

const seriesRender = function (args) {
  if (args.series.index === 0) {
      args.fill = '#ff4251';
  }
  else if (args.series.index === 1) {
      args.fill = '#4C4C4C';
  }
};

</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='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  },
  methods: {
    seriesRender: function (args) {
      if (args.series.index === 0) {
          args.fill = '#ff4251';
      }
      else if (args.series.index === 1) {
          args.fill = '#4C4C4C';
      }
    }
  }
};
</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='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></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, RangeColumnSeries, Category } from "@syncfusion/ej2-vue-charts";

const seriesData1 = [
  { 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 seriesData2 = [
  { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
  { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
  { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
  { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
];
const primaryXAxis = {
  valueType: 'Category',
  title: 'Month'
};
const primaryYAxis = {
  title: 'Temperature(Celsius)',
  labelFormat: '{value}°C'
};
const title = 'Maximum and Minimum Temperature';

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

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='seriesData1' type='RangeColumn' xName='x' low='low' high='high'></e-series>
        <e-series :dataSource='seriesData2' type='RangeColumn' xName='x' low='low' high='high'></e-series>
      </e-series-collection>
    </ejs-chart>
  </div>
</template>
<script>

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

export default {
  name: "App",
  components: {
    'ejs-chart': ChartComponent,
    'e-series-collection': SeriesCollectionDirective,
    'e-series': SeriesDirective
  },
  data() {
    return {
      seriesData1: [
        { 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 }
      ],
      seriesData2: [
        { x: 'Jan', low: 1.7, high: 7.1 },  { x: 'Feb', low: 1.9, high: 7.7 },   { x: 'Mar', low: 1.2, high: 7.5 },
        { x: 'Apr', low: 2.5, high: 9.8 },  { x: 'May', low: 4.7, high: 11.4 },  { x: 'Jun', low: 6.4, high: 14.4 },
        { x: 'Jul', low: 9.6, high: 17.2 }, { x: 'Aug', low: 10.7, high: 17.9 }, { x: 'Sep', low: 7.5, high: 15.1 },
        { x: 'Oct', low: 3.0, high: 10.5 }, { x: 'Nov', low: 1.2, high: 7.9 },   { x: 'Dec', low: 4.1, high: 9.1 }
      ],
      primaryXAxis: {
        valueType: 'Category',
        title: 'Month'
      },
      primaryYAxis: {
        title: 'Temperature(Celsius)',
        labelFormat: '{value}°C'
      },
      title: 'Maximum and Minimum Temperature'
    };
  },
  provide: {
    chart: [RangeColumnSeries, Category]
  },
  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