Virata manual

Chart gallery

Every chart is written out as one self-contained web page: no server, no internet connection, nothing to install at the other end. Every number in it was worked out in Python before the page was written — the page only draws.

What we have

  • statistics: count, max, mean, median, min, sum
  • over() for the categories and by() for a second split
  • title(), ytitle() and saving()
  • one self-contained .html file: no server, no internet, nothing to install
  • a table view beside the chart, so the numbers can be read off

Coming later

  • saving as PNG or SVG — graph export does not exist yet
  • graph twoway and graph matrix, which are refused
  • 84 more of the 105 catalogue chart types

Built — 22 of them

Each has its own page with a live example and the shape your data needs to be in.

graph areaA line with the space beneath it filled in. graph barCompares a number across categories. graph boxCompares whole distributions across groups in little space: the middle value, the middle half of the data, and the outliers beyond the whiskers. graph bumpRank over time, one line per thing being ranked. graph dotOne dot per category on an axis that fits the data instead of starting at zero. graph dumbbellTwo dots joined by a line, per category. graph groupbarBars side by side within each category, one colour per group. graph hbarThe same as a bar chart, lying on its side. graph heatmapA grid coloured by value, for two categories at once. graph histogramShows the shape of a single number: where the values pile up, how wide the spread is, whether there are two peaks rather than one. graph kdensityA smoothed version of a histogram, drawn as a curve. graph lineShows a number changing along another one, usually time. graph lollipopA bar chart with the bar thinned to a stem. graph pieShares of a whole, when there are only a few of them. graph pyramidTwo sets of bars back to back, the classic population pyramid. graph scatterShows how two numbers move together, one dot per record. graph slopeOne line per category, from its value in the first group to its value in the second. graph stackareaBands stacked over time, showing both the total and how the composition shifted. graph stackbarBars stacked into one column per category, so the total and the parts are both visible. graph streamStacked bands flowing around a drifting centre line. graph violinA density curve per group, mirrored so each group gets a shape. coefplotThe coefficients of the model you just fitted, as points with their 95% intervals against a line at zero.

Coming later

Virata works through a catalogue of about 150 published chart types. 21 of the 105 that can be drawn from columns of a dataset are built — a different count from the one above, because the catalogue lists vertical and horizontal bars separately and does not list density curves or coefficient plots at all. These are the rest. They are written down so you know what is missing, rather than finding out by typing it.