We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback


Overview

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.


Distribution curve

Provides a graphical representation of the normal distribution of data.


Marker

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 label

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.


Vertical chart

The Vue Histogram Chart can be transposed vertically to view the data in a different perspective.


Customization

Customizes the color and border of the histogram chart using built-in APIs to make it visually unique.


Vue Histogram Chart Code Example

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>

Learning Resources

UG

Histogram Chart User Guide

Learn the available options to customize Vue Histogram chart.

API

Histogram Chart API Reference

Explore the Vue Histogram Chart APIs.


85+ VUE UI COMPONENTS

Scroll up icon