DevExtreme v26.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.

Vue Charts - Range Area

Range area series can be used to display value ranges corresponding to specified arguments. Data is displayed as a color filled space between the line that joins the beginning and the line that joins the end series points.

www.kaggle.com
Backend API
<template> <DxChart id="chart" :data-source="inflationData" palette="Violet" title="Annual Inflation Rate in 2024 and 2025" > <DxCommonSeriesSettings argument-field="date" type="rangearea" /> <DxSeries range-value1-field="val2024" range-value2-field="val2025" name="2024 - 2025" /> <DxArgumentAxis :value-margins-enabled="false"> <DxLabel format="month"/> </DxArgumentAxis> <DxValueAxis :tick-interval="0.5" :value-margins-enabled="false" > <DxVisualRange start-value="0.5" end-value="4" /> <DxLabel :customize-text="customizeLabelText"> <DxFormat :precision="2" type="fixedPoint" /> </DxLabel> </DxValueAxis> <DxExport :enabled="true"/> <DxLegend :visible="false"/> </DxChart> </template> <script setup lang="ts"> import DxChart, { DxCommonSeriesSettings, DxSeries, DxArgumentAxis, DxValueAxis, DxLabel, DxVisualRange, DxFormat, DxExport, DxLegend, } from 'devextreme-vue/chart'; import { inflationData } from './data.ts'; const customizeLabelText = ({ valueText }: { valueText: string }) => `${valueText} %`; </script> <style> #chart { height: 440px; } </style>
export const inflationData = [{ date: new Date(2024, 0, 1), val2024: 1.63, val2025: 2.63, }, { date: new Date(2024, 1, 1), val2024: 2.11, val2025: 2.14, }, { date: new Date(2024, 2, 1), val2024: 2.68, val2025: 2.31, }, { date: new Date(2024, 3, 1), val2024: 3.16, val2025: 2.24, }, { date: new Date(2024, 4, 1), val2024: 3.57, val2025: 2.02, }, { date: new Date(2024, 5, 1), val2024: 3.56, val2025: 1.05, }, { date: new Date(2024, 6, 1), val2024: 3.63, val2025: 1.24, }, { date: new Date(2024, 7, 1), val2024: 3.77, val2025: 1.15, }, { date: new Date(2024, 8, 1), val2024: 3.87, val2025: 1.14, }, { date: new Date(2024, 9, 1), val2024: 3.53, val2025: 1.17, }, { date: new Date(2024, 10, 1), val2024: 3.39, val2025: 1.14, }, { date: new Date(2024, 11, 1), val2024: 2.96, val2025: 1.50, }];
import { createApp } from 'vue'; import App from './App.vue'; createApp(App).mount('#app');
<!DOCTYPE html> <html lang="en"> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/26.1.5/css/dx.light.css" /> <link rel="stylesheet" type="text/css" href="./bundle.css" /> </head> <body class="dx-viewport"> <div class="demo-container"> <div id="app"> </div> </div> <script src="bundles/vendor/vue.vendor.js"></script> <script src="./bundle.js"></script> </body> </html>