Skip to content

Commit

Permalink
Merge pull request #509 from Kitware/vegalite
Browse files Browse the repository at this point in the history
Move to Vega 3.0, VegaLite 2.0
  • Loading branch information
Roni Choudhury committed Jul 25, 2017
2 parents 9a3c04e + 7e72d65 commit 8e56efd
Show file tree
Hide file tree
Showing 80 changed files with 1,035 additions and 4,218 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "semistandard"
}
25 changes: 21 additions & 4 deletions docs/components/barchart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
================

A bar chart. The **x** field should contain a distinct value for each bar, while
the **y** field will correspond to the height of each bar.
the **y** field will correspond to the height of each bar. The **color** field
may be used to color each bar. In the case where there are multiple records
for a single **x** value, **aggregate** may be used to combine values into a
single bar.

This component can be found in the ``candela/plugins/vega`` plugin.

Expand Down Expand Up @@ -76,14 +79,24 @@ data (:ref:`Table <table>`)
x (String)
The x axis (bar position) field. Must contain numeric data. See :ref:`axis scales`.

xType (String)
The `data type`_ for the ``x`` field. The default is ``"nominal"``.

y (String)
The y axis (bar height) field. Must contain numeric data. See :ref:`axis scales`.

yType (String)
The `data type`_ for the ``y`` field. The default is ``"quantitative"``.

color (String)
The field used to color the bars. See :ref:`color scales`.
The field used to color the bars.

colorType (String)
The `data type`_ for the ``color`` field. The default is ``"nominal"``.

hover (Array of String)
The fields to display on hover.
aggregate (String)
The `aggregation mode`_ for ``y`` values when the ``x`` value is the same
in multiple records. The default is ``"sum"``.

width (Number)
Width of the chart in pixels. See :ref:`sizing`.
Expand All @@ -93,3 +106,7 @@ height (Number)

renderer (String)
Whether to render in ``"svg"`` or ``"canvas"`` mode (default ``"canvas"``).

.. _data type: https://vega.github.io/vega-lite/docs/encoding.html#data-type

.. _aggregation mode: https://vega.github.io/vega-lite/docs/aggregate.html#supported-aggregation-operations
13 changes: 12 additions & 1 deletion docs/components/boxplot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,19 @@ fields (Array of String)
scales`. Axis type will be chosen by the inferred value of the first field
in the array.

group (String)
x (String)
The optional field to group by. Defaults to all records being placed in a
single group. See :ref:`axis scales`.

xType (String)
The `data type`_ for the ``x`` field. The default is ``"nominal"``.

color (String)
The field used to color the box plots.

colorType (String)
The `data type`_ for the ``color`` field. The default is ``"nominal"``.

width (Number)
Width of the chart in pixels. See :ref:`sizing`.

Expand All @@ -92,3 +101,5 @@ height (Number)

renderer (String)
Whether to render in ``"svg"`` or ``"canvas"`` mode (default ``"canvas"``).

.. _data type: https://vega.github.io/vega-lite/docs/encoding.html#data-type
143 changes: 0 additions & 143 deletions docs/components/bulletchart.rst

This file was deleted.

11 changes: 11 additions & 0 deletions docs/components/ganttchart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ level (String)
unique values, the first value encountered will be level 1 which is rendered
more prominently, and the second value will be level 2.

type (String)
The `data type`_ for the ``start`` and ``end`` fields. The default is ``"quantitative"``.

tickCount (String)
The suggested number of tick marks to place along the x axis.

axisTitle (String)
The title of the x axis.

width (Number)
Width of the chart in pixels. See :ref:`sizing`.

Expand All @@ -126,3 +135,5 @@ height (Number)

renderer (String)
Whether to render in ``"svg"`` or ``"canvas"`` mode (default ``"canvas"``).

.. _data type: https://vega.github.io/vega-lite/docs/encoding.html#data-type
104 changes: 0 additions & 104 deletions docs/components/heatmap.rst

This file was deleted.

0 comments on commit 8e56efd

Please sign in to comment.