Simple Column Chart - AmCharts
Có thể bạn quan tâm
- Open in:
Column Chart (also known as vertical bar chart) is one of the most common and, arguably, the easiest to read chart type when it comes to visualizing category-based values. Rectangular bars are placed along the category axis with bar length representing the value for a specific category.
In this demo, we start by creating our Root element. This is, well, the root object of every amCharts 5 visualization. We apply an Animated theme to it. Then we create our Column Chart which in amCharts 5 is represented by the XYChart class (along with every other two-dimensional chart). Next, we add a Cursor (that vertical line you see when hovering the chart). We ensure that it’s just a vertical line by hiding the horizontal one.
Next, we add the axes. The horizontal axis shows dates, so we add a DateAxis. And the vertical one represents a numeric value, hence ValueAxis.
The centerpiece of every XY Chart is its series (the actual “graph” if you will). We add a ColumnSeries to the chart’s series collection, configure its axes, specify data fields to represent on each axis, and format the tooltip text.
Finally, we add a horizontal Scrollbar for precise zooming and panning.
All that’s left is to assign our data.
As a final touch, we apply some lite animation to make everything look nicer.
Related tutorials
- XY Chart
- Animations
Demo source
Từ khóa » Html Column Chart
-
HTML5 & JS Column Charts
-
JavaScript Column Charts & Graphs
-
Highcharts - Column Chart Using HTML Table - Tutorialspoint
-
Chart.js - W3Schools
-
JavaScript Column Chart Examples - ApexCharts.js
-
Creating JavaScript Column And Bar Charts On COVID-19 Data
-
Column Charts For JavaScript - JSCharting
-
Best Free Column Chart In JavaScript & CSS
-
HTML Bar Chart: CSS & HTML Source Code For Creating Charts
-
Column Chart | Highcharts
-
Bar Chart | Chart.js
-
Create A Simple Bar Chart And Column Chart Using Pure CSS Grid
-
Bar Or Column Chart With Chart.js - Hands-On Data Visualization