Skip to main content
Skip table of contents

Pie Chart

Expected Input Format

The PieChart expects the data to be structured in two columns:

  1. Column: Labels of the sections

  2. Column: Values of the sections (must be numeric)

The first row, the table headers, are ignored.

Adjusting Title and Pie Hole

PocketQuery.chart('PieChart', {
    title: 'Countries in Europe by population',
    pieHole: 0.2

The result for the same query is this:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.