100% Stacked Column ChartBasic
Stacked columns shown as shares of each category's total, using valueYShow and calculateTotals.
Each example opens with its chart on top and its source below: a single HTML page with the code inside. JavaScript runs the code; JSON config, where there is one, builds the chart from a config. A basic example is the plain chart of its type, a technique shows one behaviour, a showcase puts several together. The list as data: examples.json.
Stacked columns shown as shares of each category's total, using valueYShow and calculateTotals.
Countries as bubbles on two value axes, sized by a heat rule and colored per data row through templateField.
Daily open, high, low and close prices as candles on a date axis; OHLCSeries takes the same settings.
Several column series side by side in each category, with value labels and a legend.
A column series of daily values on a date axis, with a cursor, a scrollbar and zoom.
A range per category drawn as a thin column from the open value to the close value, with a bullet at each end.
A line of weekday values on a GaplessDateAxis, which leaves out the weekends so the points stay evenly spaced.
A line series on a date axis, with a cursor, a scrollbar and zoom.
A smoothed line series with a fill and bullets on a date axis.
Column series where some are stacked and some start a new cluster, set per series with the stacked setting.
Six column series stacked on a category axis, with value labels and a legend.
Two step line series with fills, one stacked on the other, on a date axis.
This period as a solid line and the previous one as a dashed line on the same dates, with one tooltip showing both values.
A line of 50,000 hourly values that stays responsive because the date axis groups them into longer periods with groupData.
A handle on the date axis that the user drags to move an axis range; the part of the series after it is drawn in another color with a pattern fill.
Clicking the plot area adds a point to a line series and its bullets can be dragged, by turning pointer coordinates into axis values.
Ten line series with a legend at the side; hovering a legend item dims all the other lines, done with events on the legend item template.
A line that gets a new point every second and drops its oldest one, with the new point animated in from the last.
Three line series with a value axis each, colored like their series, with the grids lined up by syncWithAxis.
Two price series shown as percent change from the start of the zoomed range, so they can be compared, with a volume panel on a second, stacked Y axis.
A line whose last point has a pulsing bullet, switched on for one data item with templateField and animated with the animations setting.
Columns whose values change on a timer and that slide to their new places as the category axis is sorted again.
A Hebrew line chart with Root direction set to rtl: text reads right to left, and the legend, with values that follow the cursor, wraps over several rows from the right.
A pie chart made into a donut with an inner radius, with a legend below it.
A funnel series in a sliced chart, with labels on the slices and a legend.
A pictorial stacked series: slices fill an SVG shape in proportion to their values.
A pie chart with a legend below it.
A pyramid series in a sliced chart, with aligned labels and a legend.
A pie chart where each slice's radius follows its value, set by an adapter on the slice template.
A world map with a NightSeries that shades where it is night right now and shows the sun.
Population by country as circles that lie on the surface of a globe and flatten towards its edge, sized by a heat rule, with surfaceBullets.
Flight routes between cities on a globe, drawn as lines that rise above the surface in an arc with the altitude setting.
City pins that lie on the surface of a globe and flatten towards its edge, using the surfaceBullets setting of MapPointSeries.
Flows between countries drawn as bands on a map with MapSankeySeries, each band as wide as its value.
Bubbles placed on countries by their id, with heat rules setting each bubble's size and color from its value.
A map that opens zoomed in on Europe, using the home settings and autoHome, with a home button to return there.
A world map drawn as a grid of dots with PixelMapSeries, with countries colored by value using heat rules.
A flat map that shows a daytime satellite image where the sun is up right now and city lights where it is night, with MapRasterSeries. The images load from the amCharts CDN, so it needs an internet connection.
A slowly turning globe that shows a satellite image with MapRasterSeries, with country borders drawn over it. The image loads from the amCharts CDN, so it needs an internet connection.
US states colored by value on a red, yellow and green scale, with heat rules and a heat legend that take several colors.
A plane flies back and forth along a line between two cities, moved by the animations setting of its bullet.
City markers that merge into clusters with a count when they are close together; clicking a cluster zooms in on its cities.
A globe that turns and zooms to the clicked country, and back when it is clicked again or the water is clicked: clickZoom on a map that pans by rotating.
Click a country to zoom in on it; click it again, the water or the home button to zoom back out. One setting, clickZoom, does it.
Oil routes on a globe: MapSankeySeries flows between coordinates, bent through waypoints to stay at sea, with a bullet travelling along each one.
A stock chart with a comparison control and a searchable dropdown: picked stocks are added with addComparingSeries() and the chart switches to percent change.
A candlestick chart that gets a new price every second: the last candle is updated or a new one is added, and an axis range follows the current value.
A stock chart with an interval control that swaps minute, day, week and month data and sets the matching base interval on the date axis.
Three years of daily prices on a date axis with groupData, which shows them as weekly candlesticks when zoomed out and as daily ones when zoomed in.
A stock chart that shows volume in a second panel, which has its own axes, legend and cursor and stays in sync with the main one.
A stock chart with candlesticks, volume, a scrollbar with a preview, a legend and a toolbar for indicators, periods, series type and drawing.
A pack chart: nested data as circles inside circles, sized by value, where a click opens the next level.
A force-directed tree: nested data as linked circles that arrange themselves and open on click.
A partition chart: every level of nested data as a column of rectangles sized by value.
A sunburst: nested data as rings of slices, one ring per level.
A tree chart: nested data as linked nodes laid out level by level.
A treemap that drills into a branch on click, with a breadcrumb bar to go back up.
World population as a Voronoi treemap, with theme rules that style each level and a click that zooms to a continent.
An arc diagram: nodes in a row, sized by their total, with arcs for the links between them and a label under each node.
A chord diagram where ribbons between the nodes show how much flows each way.
A chord diagram whose links end in arrowheads, so each one shows its direction.
A Sankey diagram: nodes in columns and links whose width shows how much flows between them.
A chord diagram with thin line links, nodes drawn as circle bullets, and a circle travelling along every link.
A gauge made from a radar chart: a half-circle value axis and a clock hand that points at a value.
A line series with bullets on a radar chart, with a category axis around the circle and a cursor.
A gauge with labelled color bands, where the hand and the value label take the color of the band the hand is in.
Rounded radar columns that span date ranges on a circular date axis, with a ring for each category.
A heat map on a radar chart, hours around the circle and weekdays as rings, with a heat legend that shows the value of the hovered cell.
Radar columns that animate through the years with a play button and a slider, and continent ranges that zoom in when clicked.
A serpentine chart: tasks as columns along a date axis that winds back and forth, with a circle at each end of a task and flags for events.
A spiral chart: three years of monthly values as columns along a date axis that winds outwards, with a value axis across it.
A day as a timeline that follows a hand-made path: a curve chart whose axis runs along a list of points, with an icon pin on every activity.
A Gantt chart with a flat list of linked tasks.
A Gantt chart with parent tasks and subtasks, set up with parentId in the category data.
A Gantt chart that keeps the user's edits and marked dates in localStorage and restores them on the next visit.
A column chart drawn as SVG instead of canvas, by choosing the renderer when the root element is created.
Three overlapping circles and their intersections, with a legend.
A word cloud made from a list of words with weights, colored by weight with a heat rule.
A word cloud made from a paragraph of text: the series counts the words and sizes them by how often they are used.
The <am5-chart> element builds a chart from a JSON config, with no root and no chart code: for pages, frameworks and tools where writing chart code is not the point.
A pie chart built by passing a JSON config to JsonParser, with refs for its data and series.
A table with a tiny line chart and a tiny column chart in every row, each in its own root with the Micro theme.