Plotting
The Plotting toolbox draws charts: line, bar, scatter, histogram, box and violin plots, heat maps, pie and donut charts, treemaps, waterfalls, radar and network charts, and more. You give it lists of numbers or a table, and it works out the axes, ticks, labels and margins. You can add layers such as reference lines and notes, set a theme and palette, put several charts in a grid, and save the result as PNG, SVG, PDF, or as a native chart inside a PowerPoint, Excel or Word file.
It also holds Dhole, Divooka's language for charts and diagrams written as text, and displays that are not charts: a big number, a table, a QR code.
Use it to see your data, and to put charts into reports and slides.
- Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the Data Analytics workload, or add the Data Analytics reference with Add reference (
Ctrl+Shift+L). The Data Analytics reference holds Data Analytics and Plotting. - Maturity: Stable · Support: Tier 1 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → Plotting, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ Plotting (14 examples) and Dhole (14 examples) · node reference
New to graphs? Start with Your first program.
Main ideas
A chart node makes a figure. Line Chart, Bar Chart and the rest return a figure. Select the node after a run to see it. Figure nodes (Overlay Charts, Arrange Charts, Small Multiples) combine figures.
Two ways in. The Charts category takes lists of numbers. The Table Charts category (Line Chart of Table, Bar Chart of Table and others) takes a table from Data Analytics through Table As Series, plus column names.
Layout once, draw at any size. A chart is laid out at 640 by 400 pixels unless Set Size says otherwise. Chart to Image draws that same layout at any resolution.
Example: your first chart
The task: draw a sine wave from 0 to 10.
Open Plotting > First Chart (Ctrl+Shift+E):
- Evenly Spaced, From 0, To 10, Count 50. Fifty x values.
- Sine (in Linear Algebra) takes the sine of each value.
- Line Chart, X the values, Y their sines, Title
A sine wave, X Titlex, Y Titlesin x. - Chart Width reads how wide the chart is, and Chart to Image, Dpi 192, draws it at twice the default resolution.
Run it with F5 and select Line Chart:

The console shows:
The chart is 640 pixels wide.
At 192 dpi its picture is 1280 pixels wide.
To try more: change Count, or replace Sine with Cosine.
To use your own data: read a table with Data Analytics, pass it through Table As Series, and use a Table Chart such as Line Chart of Table with your column names. Or use Get Numbers to turn a column into a list for the Charts nodes.
Example: save one chart in six formats
Open Plotting > Saving Charts. A Bar Chart titled Revenue by quarter goes to six Save Chart nodes, one per file name: chart.png, chart.svg, chart.pdf, chart.pptx, chart.xlsx and chart.docx. Save Chart picks the format from the file name. In the .pptx, .xlsx and .docx files the chart is a native chart with its numbers inside, so you can edit it in PowerPoint, Excel or Word. Each Save Chart's Written As output says what went into the file, for example chart.png: A picture.
More examples to open
| Example | What it shows |
|---|---|
| Plotting > Bar Charts | Grouped and stacked bars, a population pyramid |
| Plotting > Distributions | Histogram, box plots, violins, density |
| Plotting > Scatter and Trends | Points with a fitted line, bubbles |
| Plotting > Layers and Notes | Bands, reference lines, notes, arrows |
| Plotting > Small Multiples | Four charts on one scale, a dashboard |
| Plotting > Parts of a Whole | Pie, donut, treemap, sunburst, funnel, waterfall |
| Dhole > Flowchart | A diagram written as text |
Tips and limits
- Native Office charts have limits. A chart type that PowerPoint, Excel or Word has no native form for is saved as a picture, and Written As says so.
- The SVG and PDF keep text as text, so you can search and select it.
- Charts can use Chinese. Each chart has a Language input (English, Simplified or Traditional Chinese) for its month names and labels.
- Gaps are missing values. NaN in the data draws as a gap in a line.
- For diagrams, use Dhole. Flowcharts, sequence diagrams, Gantt charts and mind maps are written as text with Draw Dhole. See Dhole.
Goes well with: Data Analytics for tables, Linear Algebra for vectors of numbers.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| Charts | Area Chart, Bar Chart, Box Plot, Bubble Chart and 23 more |
| Chart Layers | Area Layer, Arrow, Bars Layer, Box Plot Layer and 15 more |
| Displays | Empty, Number Display, Organization Tree, QR Code and 4 more |
| Chart Style | Set Colour Map, Set Font, Set Legend, Set Palette and 7 more |
| Sample Data | Add Noise, Dates, Evenly Spaced, Normal Sample and 3 more |
| Table Charts | Bar Chart of Table, Box Plot of Table, Donut of Table, Histogram of Table and 3 more |
| Figures | Add Layers, Arrange Charts, Make Chart, Overlay Charts and 1 more |
| Chart Export | Chart Count, Chart to Image, Chart to SVG Text, Chart Width and 1 more |
| Chart Inputs | Make Chart Array, Make Layer Array, Make Vector Array |
| Node Graph Displays | Divooka Graph, Divooka Node |
| Dhole | Describe Dhole, Draw Dhole, Write Dhole |
| Table Series | Table As Series |
See also
- Plotting node reference
- Plotting in Divooka - an older overview with a picture of every chart layer.
- Dhole - charts and diagrams written as text.
- Toolboxes - every other toolbox.