Skip to content

Visualizations

va barbosa edited this page Jul 3, 2017 · 2 revisions

Various visualizations are available to display the data. If no visualization is specified the module will try to select an appropriate one to show the data. Visualizations can be found in the /vis folder of the respository.

Visualization Data schema Attributes Description
bar-chart [{ key: "", value: n }, ...] tooltip Horizontal bar chart where each key is represented by a horizontal bar whose length is determined by value.
pie-chart [{ key: "", value: n }, ...]
  • tooltip
  • donut: true, to render as donut chart
A pie chart where each key is represented by a slice of the pie. The size of the slice is a percentage of value to the sum of all values.
bubble-chart [{ key: "", value: n }, ...] tooltip Bubble chart where each key is represented by a circle with radius determined by value.
grouped-bar-chart [{ key: "", value: { v1: n, v2: n, ...} }, ...]
  • tooltip
  • maxgroups: number of key groups to show per single chart. multiple charts created if more keys exist
Bar chart grouped by specified keys
stacked-bar-chart [{ key: "", value: { v1: n, v2: n, ...} }, ...] Bar chart stacked by specified keys
range-bar-chart [{ key: "", value: { min: n, max: n, sum: n, count: n } }, ...]
  • tooltip
  • min: minimum value for the x scale
  • max: maximum value for the x axis
Bar chart staggered according to specified min and max values
table-vis [{ field1: "", field2: "", ...}, ...] htmlcells: true, if table cells should allow html content Table with each item in the data represented by a row and the columns set to the fields of the items.
timeline [{ key: "", date: d, value: n }, ...] scatter: true, if data point should not be connected Timeline where each value is plotted against the corresponding date.
map-vis [{ key: "", geo: [long, lat], value: n }, ...]
  • tooltip
  • features: topojson features used for drawing the map
Map where each value is plotted against the longitude and latitude as provided by geo.

More Info

Clone this wiki locally