Plone is an open-source content management system written in Python, with two front ends: Volto, in React, and Classic UI, with server-side templates. silverpoint has an add-on for each:

  • volto-silverpoint: a Volto block that draws a chart from a table, server-rendered and hydrated in the browser. It draws with @silverpoint/react and @silverpoint/embed 0.11.2.
  • collective.silverpoint: a Chart content type with a Classic UI view and a browser view to use in templates. It draws with the silverpoint Python package 0.11.0.post1, the one from article 31.

Both speak the same language: a Classic UI Chart's spec, as plone.restapi serialises it, is one the Volto block can draw.

Horizontal bar chart of wins per team on cyanotype paper, the Volto block's example

Requirements

Requirement
Volto18 or 19 (tested on 18.36.0 and 19.8.1); Node 22 or later and pnpm 10
Plone backend6.x with plone.volto and plone.restapi; the Volto block needs no backend package
Classic UIPlone 6.0, 6.1 or 6.2 on Python 3.10 to 3.13

Volto: the Silverpoint chart block

Install the add-on and register it:

pnpm add volto-silverpoint
// volto.config.js
module.exports = { addons: ['volto-silverpoint'] };

To use it:

  1. Add a Silverpoint chart block (group Common, allowed in every content type).
  2. Give it a table: paste CSV (comma-, semicolon- or tab-separated) or JSON ([{"col": value}] or {"columns": […], "values": [[…]]}), upload a .csv or .json, or choose a Table file: a Plone File item, read each time the block renders.
  3. Choose the chart, map its roles to columns (when exactly one column fits a role, it comes preselected) and set the options, the appearance and the view fields.

A table to paste for a bar chart:

team;wins
A;12
B;9
C;15

The block saves plain JSON, never rendered markup, and plone.restapi returns it unchanged:

{
  "@type": "silverpointChart",
  "chart": "bar-chart",
  "table": { "columns": ["team", "wins"], "rows": [{ "team": "A", "wins": 12 }] },
  "role_x": "team",
  "role_value": "wins",
  "opt_orientation": "rows",
  "ground": "cyanotype",
  "title": "Wins per team"
}

Pasted or uploaded tables are stored in the block, up to 2,000 rows. A larger table is refused and the editor asks for a File item, which is referenced rather than copied. The editor explains why a table does not bind to the chart; the public view shows only the title and the description.

Classic UI: the Chart content type

Add the package to your project:

# requirements.txt (or your buildout's eggs)
collective.silverpoint

Restart and activate collective.silverpoint under Site Setup → Add-ons (it also installs plone.restapi). Then add a Chart: the chart, the data (a CSV or JSON Table file, or the Table as text field), the Role mapping and the Options as JSON, and the appearance.

Chart         Bar chart
Table as text team,wins
              A,12
              B,9
              C,15
Role mapping  {"x": "team", "value": "wins"}
Options       {"orientation": "rows"}

The add and edit forms validate the chart with the silverpoint package and show its message on the field at fault: an unknown column on the Role mapping, an unknown option on the Options. A Chart is content like any other: it has a publication workflow, permissions, versions and shows up in searches. The Silverpoint charts control panel holds the ground, substrate, mode and palette a chart takes when it sets none of its own.

To draw a chart in any template, call the @@silverpoint-chart view:

<!-- a Chart item by UID -->
<div tal:replace="structure python: context.restrictedTraverse('@@silverpoint-chart')(uid=chart_uid)" />

<!-- or a spec built in the template -->
<div tal:replace="structure python: context.restrictedTraverse('@@silverpoint-chart')(
       spec={'chart': 'bar-chart', 'data': rows, 'props': {'xKey': 'team', 'valueKey': 'wins'}})" />

The view writes a <silverpoint-chart shadow> with the spec and, inside it, the title, the description and the data as an HTML table. That is what a reader without JavaScript gets and what a search engine indexes. The site serves the script at @@silverpoint-script.js?v=<version>, with its integrity and only on pages that hold a chart, and the markup has no inline script, so it works under the Content-Security-Policy (CSP) Plone ships by default.

Which one do I pick?

It depends on your site's front end. With Volto, the block: the editor builds the chart on the page itself. With Classic UI, the content type: the chart is an item with its own publication workflow and can be reused from any template. And if one day you move from Classic UI to Volto, your Charts' spec, served by plone.restapi, is one the block knows how to draw.

Next