A timeline wrapped into a ring: the year runs clockwise from the top, and each ring is one row of date ranges. Here, when five holiday homes were booked in 2025.
Bent into a ring, a year has no edge: December runs into January, so the ski chalet’s winter season reads as one stretch across the top. Each ring is a row, like a lane in a Gantt chart. For projects with exact dates over several years, a straight timeline is easier to read.
Built with amCharts 5, a JavaScript library. The JavaScript includes your theme and renderer (canvas or SVG); the JSON also follows the changes you make with the controls.
npm install @amcharts/amcharts5. See Getting started.
The same chart as a JSON config. Chart Maker reads and writes this format, the library's JSON parser turns it into a chart, and the <am5-chart> element puts it on a page with no code."type" is the class to create and "settings" what you would pass to its new() in code; "properties" fill in its parts, lists such as series and axes or templates such as columns.template; "refs" holds objects used in more than one place ("#series-0" stands for the one named series-0); a string starting with "@" takes a value from another object, such as "@series.get('fill')".
A complete page. Save it as an .html file and open it in a browser.
Paste this into an AI coding assistant to build the chart from scratch. More in amCharts & AI.
// Create root element
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
var root = am5.Root.new("chartdiv");
// Set themes
// https://www.amcharts.com/docs/v5/concepts/themes/
root.setThemes([am5themes_Animated.new(root), am5themes_Responsive.new(root)]);
// Create chart
// https://www.amcharts.com/docs/v5/charts/radar-chart/
var chart = root.container.children.push(
am5radar.RadarChart.new(root, {
panX: false, // no dragging the plot around
panY: false,
wheelX: "panX", // a horizontal wheel or trackpad swipe moves a zoomed view around...
wheelY: "zoomX", // ...and the vertical wheel zooms in on some dates
innerRadius: am5.percent(40) // a hole in the middle, 40% of the radius
})
);
// every other color of the palette, so neighboring rings stand apart
chart.get("colors").set("step", 2);
// Add cursor
// https://www.amcharts.com/docs/v5/charts/radar-chart/#Cursor
var cursor = chart.set("cursor",
am5radar.RadarCursor.new(root, {
behavior: "zoomX" // drag around the circle to zoom in on some dates
}));
cursor.lineY.set("visible", false); // no circle through the pointer, only the line from the center
// Create axes and their renderers
// https://www.amcharts.com/docs/v5/charts/radar-chart/#Adding_axes
// One ring per holiday home, from the middle out
var yRenderer = am5radar.AxisRendererRadial.new(root, {
minGridDistance: 10 // small, so every home keeps its label
});
yRenderer.labels.template.setAll({
fontSize: 12 // small text, in pixels
});
var yAxis = chart.yAxes.push(
am5xy.CategoryAxis.new(root, {
maxDeviation: 0, // can't be panned past the first or last ring
categoryField: "home",
renderer: yRenderer
})
);
// The year runs clockwise around the circle, from January 1 at the top
var xAxis = chart.xAxes.push(
am5xy.DateAxis.new(root, {
min: new Date(2025, 0, 1).getTime(), // the circle is exactly 2025: January 1...
max: new Date(2026, 0, 1).getTime(), // ...to January 1, 2026
baseInterval: { timeUnit: "day", count: 1 }, // the dates are whole days
renderer: am5radar.AxisRendererCircular.new(root, {})
})
);
// Data: when five holiday homes were booked in 2025, one row per booking (sample data).
// The ski chalet's winter bookings run across New Year, so they show at both ends of the year.
var data = [
{ home: "Ski chalet", start: new Date(2025, 0, 1).getTime(), end: new Date(2025, 2, 31).getTime() },
{ home: "Ski chalet", start: new Date(2025, 11, 18).getTime(), end: new Date(2025, 11, 31).getTime() },
{ home: "Beach house", start: new Date(2025, 3, 2).getTime(), end: new Date(2025, 3, 18).getTime() },
{ home: "Beach house", start: new Date(2025, 5, 1).getTime(), end: new Date(2025, 8, 15).getTime() },
{ home: "Lake cabin", start: new Date(2025, 4, 1).getTime(), end: new Date(2025, 5, 20).getTime() },
{ home: "Lake cabin", start: new Date(2025, 6, 10).getTime(), end: new Date(2025, 7, 31).getTime() },
{ home: "Farmhouse", start: new Date(2025, 2, 20).getTime(), end: new Date(2025, 4, 31).getTime() },
{ home: "Farmhouse", start: new Date(2025, 7, 5).getTime(), end: new Date(2025, 9, 20).getTime() },
{ home: "City flat", start: new Date(2025, 1, 1).getTime(), end: new Date(2025, 3, 30).getTime() },
{ home: "City flat", start: new Date(2025, 7, 20).getTime(), end: new Date(2025, 9, 25).getTime() }
];
// Dates in tooltips
// https://www.amcharts.com/docs/v5/concepts/formatters/formatting-dates/
root.dateFormatter.setAll({
dateFormat: "MMM d", // dates shown as "Jun 1"
dateFields: ["valueX", "openValueX"] // the fields that hold dates, so they're formatted as dates
});
// Create series: one per home, so each ring gets its own color
// https://www.amcharts.com/docs/v5/charts/radar-chart/#Adding_series
var homes = ["City flat", "Farmhouse", "Lake cabin", "Beach house", "Ski chalet"]; // middle ring out
homes.forEach(function(home) {
var series = chart.series.push(
am5radar.RadarColumnSeries.new(root, {
// each home keeps its whole ring, instead of sharing every ring with the other series
clustered: false,
name: home,
xAxis: xAxis,
yAxis: yAxis,
categoryYField: "home",
valueXField: "end",
openValueXField: "start" // each bar runs from the booking's start date, not from the axis start
})
);
series.columns.template.setAll({
cornerRadius: 20, // rounded ends, up to 20px
tooltipText: "{categoryY}: {openValueX} - {valueX}" // the home and the booking's dates
});
series.data.setAll(data.filter(function(booking) { // only this home's bookings
return booking.home === home;
}));
series.appear(2000, 100);
});
yAxis.data.setAll(homes.map(function(home) {
return { home: home };
}));
// Add scrollbar: it zooms the dates. It starts hidden
// https://www.amcharts.com/docs/v5/charts/xy-chart/scrollbars/
chart.set("scrollbarX", am5.Scrollbar.new(root, { orientation: "horizontal", exportable: false, forceHidden: true }));
// Animate chart and series in
// https://www.amcharts.com/docs/v5/concepts/animations/#Initial_animation
chart.appear(2000, 100);
{
"type": "RadarChart",
"settings": {
"panX": false,
"panY": false,
"wheelX": "panX",
"wheelY": "zoomX",
"innerRadius": {
"type": "Percent",
"value": 40
},
"cursor": {
"type": "RadarCursor",
"settings": {
"behavior": "zoomX"
},
"properties": {
"lineY": {
"settings": {
"visible": false
}
}
}
},
"scrollbarX": {
"type": "Scrollbar",
"settings": {
"orientation": "horizontal",
"exportable": false,
"forceHidden": true
}
},
"colors": {
"type": "ColorSet",
"settings": {
"step": 2,
"passOptions": {
"hue": 0.05,
"saturation": 0,
"lightness": 0
},
"colors": [
{
"type": "Color",
"value": "#67b7dc"
},
{
"type": "Color",
"value": "#6794dc"
},
{
"type": "Color",
"value": "#6771dc"
},
{
"type": "Color",
"value": "#8067dc"
},
{
"type": "Color",
"value": "#a367dc"
},
{
"type": "Color",
"value": "#c767dc"
},
{
"type": "Color",
"value": "#dc67ce"
},
{
"type": "Color",
"value": "#dc67ab"
},
{
"type": "Color",
"value": "#dc6788"
}
],
"reuse": false,
"startIndex": 0,
"stateAnimationDuration": 600
}
}
},
"properties": {
"series": [
"#series-0",
"#series-1",
"#series-2",
"#series-3",
"#series-4"
],
"xAxes": [
"#axis-0"
],
"yAxes": [
"#axis-1"
]
},
"refs": [
{
"data-0": [
{
"home": "City flat",
"start": 1738360800000,
"end": 1745960400000
},
{
"home": "City flat",
"start": 1755637200000,
"end": 1761339600000
}
]
},
{
"data-1": [
{
"home": "Farmhouse",
"start": 1742421600000,
"end": 1748638800000
},
{
"home": "Farmhouse",
"start": 1754341200000,
"end": 1760907600000
}
]
},
{
"data-2": [
{
"home": "Lake cabin",
"start": 1746046800000,
"end": 1750366800000
},
{
"home": "Lake cabin",
"start": 1752094800000,
"end": 1756587600000
}
]
},
{
"data-3": [
{
"home": "Beach house",
"start": 1743541200000,
"end": 1744923600000
},
{
"home": "Beach house",
"start": 1748725200000,
"end": 1757883600000
}
]
},
{
"data-4": [
{
"home": "Ski chalet",
"start": 1735682400000,
"end": 1743368400000
},
{
"home": "Ski chalet",
"start": 1766008800000,
"end": 1767132000000
}
]
},
{
"data-5": [
{
"home": "City flat"
},
{
"home": "Farmhouse"
},
{
"home": "Lake cabin"
},
{
"home": "Beach house"
},
{
"home": "Ski chalet"
}
]
},
{
"axis-0": {
"type": "DateAxis",
"settings": {
"min": 1735682400000,
"max": 1767218400000,
"baseInterval": {
"timeUnit": "day",
"count": 1
},
"renderer": {
"type": "AxisRendererCircular"
}
}
}
},
{
"axis-1": {
"type": "CategoryAxis",
"settings": {
"maxDeviation": 0,
"categoryField": "home",
"renderer": {
"type": "AxisRendererRadial",
"settings": {
"minGridDistance": 10
},
"properties": {
"labels": {
"properties": {
"template": {
"settings": {
"fontSize": 12
}
}
}
}
}
}
},
"properties": {
"data": "#data-5"
}
}
},
{
"series-0": {
"type": "RadarColumnSeries",
"settings": {
"clustered": false,
"name": "City flat",
"xAxis": "#axis-0",
"yAxis": "#axis-1",
"categoryYField": "home",
"valueXField": "end",
"openValueXField": "start"
},
"properties": {
"data": "#data-0",
"columns": {
"properties": {
"template": {
"settings": {
"cornerRadius": 20,
"tooltipText": "{categoryY}: {openValueX} - {valueX}"
}
}
}
}
}
}
},
{
"series-1": {
"type": "RadarColumnSeries",
"settings": {
"clustered": false,
"name": "Farmhouse",
"xAxis": "#axis-0",
"yAxis": "#axis-1",
"categoryYField": "home",
"valueXField": "end",
"openValueXField": "start"
},
"properties": {
"data": "#data-1",
"columns": {
"properties": {
"template": {
"settings": {
"cornerRadius": 20,
"tooltipText": "{categoryY}: {openValueX} - {valueX}"
}
}
}
}
}
}
},
{
"series-2": {
"type": "RadarColumnSeries",
"settings": {
"clustered": false,
"name": "Lake cabin",
"xAxis": "#axis-0",
"yAxis": "#axis-1",
"categoryYField": "home",
"valueXField": "end",
"openValueXField": "start"
},
"properties": {
"data": "#data-2",
"columns": {
"properties": {
"template": {
"settings": {
"cornerRadius": 20,
"tooltipText": "{categoryY}: {openValueX} - {valueX}"
}
}
}
}
}
}
},
{
"series-3": {
"type": "RadarColumnSeries",
"settings": {
"clustered": false,
"name": "Beach house",
"xAxis": "#axis-0",
"yAxis": "#axis-1",
"categoryYField": "home",
"valueXField": "end",
"openValueXField": "start"
},
"properties": {
"data": "#data-3",
"columns": {
"properties": {
"template": {
"settings": {
"cornerRadius": 20,
"tooltipText": "{categoryY}: {openValueX} - {valueX}"
}
}
}
}
}
}
},
{
"series-4": {
"type": "RadarColumnSeries",
"settings": {
"clustered": false,
"name": "Ski chalet",
"xAxis": "#axis-0",
"yAxis": "#axis-1",
"categoryYField": "home",
"valueXField": "end",
"openValueXField": "start"
},
"properties": {
"data": "#data-4",
"columns": {
"properties": {
"template": {
"settings": {
"cornerRadius": 20,
"tooltipText": "{categoryY}: {openValueX} - {valueX}"
}
}
}
}
}
}
}
],
"root": {
"properties": {
"dateFormatter": {
"settings": {
"dateFormat": "MMM d",
"dateFields": [
"valueX",
"openValueX"
]
}
}
}
}
}