Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Scomp · mod_base
  • Reference
  • Frontend developer
  • User interface and interaction
  • Server component
  • Render
  • Structured data
  • Accessibility

chart_donut

Module

mod_base

Render a donut chart as inline SVG.

This is a convenience wrapper around the chart scomp. It accepts the same arguments and always uses type="donut".

{% chart_donut data=[["Yes", 42], ["No", 8]] %}

Edit on GitHub

Related documentation

Scomp

chart

Render a chart without JavaScript, CSS, external services, or external assets.

Scomp

chart_pie3d

Deprecated compatibility alias for chart_pie.

Scomp

chart_pie

Render a pie chart as inline SVG.

Scomp

spinner

Add an AJAX activity indicator.

Scomp

lazy

Custom tag which adds a ‘loader’ image to the page and performs a one-time action when loader comes into view.

Scomp

button

Makes a button with an action attached.

Scomp

tabs

Make a HTML element into a tab set.

Scomp

survey_start

Show the first page for a given survey (with the id parameter):

Scomp

mailinglist_subscribe

Show the mailinglist subscription form to subscribe to a certain mailinglist id.

GitHub © 2026 Zotonic