The Vue Histogram chart is a bar (column) chart used for frequency distribution where the widths of bars are proportional to classes into which variables have been divided and the heights of the bars are proportional to class frequencies.
Provides a graphical representation of the normal distribution of data.
Mark data points with built-in shapes such as circles, rectangles, ellipses, vertical lines, horizontal lines, diamonds, triangles, pentagons, crosses, and pluses. In addition to these shapes, use images to make the points more attractive.
Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.
The Vue Histogram Chart can be transposed vertically to view the data in a different perspective.
Customizes the color and border of the histogram chart using built-in APIs to make it visually unique.
Easily get started with Vue Histogram Chart by using a few lines of HTML and JS code, as demonstrated below. Also explore our Vue Histogram Chart Example that shows how to render and configure the chart.
<template>
<div id="app">
<ejs-chart id="container" :primaryXAxis='primaryXAxis'>
<e-series-collection>
<e-series :dataSource='seriesData' type='Histogram' xName='x' yName='y'> </e-series>
</e-series-collection>
</ejs-chart>
</div>
</template>
<script>
import { ChartPlugin, HistogramSeries, Category } from "@syncfusion/ej2-charts";
Vue.use(ChartPlugin);
export default {
data() {
return {
seriesData: [{ x: 'CHN', y: 12, },
{ x: 'GER', y: 15, },
{ x: 'RUS', y: 30 },
{ x: 'BRZ', y: 6.4 },
{ x: 'IND', y: 14 }],
primaryXAxis: {
valueType: 'Category',
},
};
},
provide: {
chart: [HistogramSeries, Category]
}
};
</script>
<!DOCTYPE html>
<html>
<body style>
<div id="app"></div>
</body>
</html>
Learn the available options to customize Vue Histogram chart.
Explore the Vue Histogram Chart APIs.