3D Doughnut Chart

Overview

This article explains how to create a 3D Doughnut chart in AnyChart.

To learn more about 3D charts in general and how to customize them, see 3D Charts (Overview). You can also read about the settings available for the Doughnut Chart, all of them shared by 3D Doughnut (except inner labels).

Quick Start

To build a 3D Doughnut chart, use the anychart.bar3d() chart constructor and the innerRadius() method to set the inner radius. The radius is 0 by default and can be set either as a value or a percentage of the chart's bounds.

// create a 3d pie chart
chart = anychart.pie3d();

// set the inner radius
// (to turn the pie chart into a doughnut chart)
chart.innerRadius("30%");

Playground

You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.