Skip to content

Commit 6ba56bc

Browse files
committed
Adding examples for charting and pivoting
1 parent 4669dac commit 6ba56bc

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

docs/about/releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The Bullet UI that lets you build, run, save and visualize results from Bullet.
6767

6868
| Date | Release | Highlights |
6969
| ------------ | -------------------------------------------------------------------------------------- | ---------- |
70-
| 2016-05-12 | [**0.3.1**](https://github.com/yahoo/bullet-ui/releases/tag/v0.3.1) | Adds styles to the Pivot table. Fixes some minor UI interactions |
70+
| 2016-05-15 | [**0.3.1**](https://github.com/yahoo/bullet-ui/releases/tag/v0.3.1) | Adds styles to the Pivot table. Fixes some minor UI interactions |
7171
| 2016-05-10 | [**0.3.0**](https://github.com/yahoo/bullet-ui/releases/tag/v0.3.0) | Adds Charting and Pivoting support. Migrations enhanced. Support for overriding nested default settings |
7272
| 2016-05-03 | [**0.2.2**](https://github.com/yahoo/bullet-ui/releases/tag/v0.2.2) | Fixes maxlength of the input for points |
7373
| 2016-05-02 | [**0.2.1**](https://github.com/yahoo/bullet-ui/releases/tag/v0.2.1) | Fixes a bug with a dependency that broke sorting the Filters |

docs/ui/usage.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,25 @@ By adding ```duration``` into the fields, the number of unique values for ```(ty
245245

246246
The ```maximum_count_error``` value for the query above was ```3```. This means that the difference between the upper bound and the lower bound of each count estimate is ```3```. Bullet returns the upper bound as the estimate so subtracting ```3``` from each count gives you the lower bound of the count. Note that some counts are closer to each other than the count error. For instance, ```(quux, 1)``` and ```(baz, 0)``` have counts ```67``` and ```66``` but their true counts could be from ```64 to 67``` and ```63 to 66``` respectively. This means that ```(baz, 0)``` could well be the most frequent item for this query.
247247

248-
## Coming soon
248+
## Charting
249249

250-
[Bullet UI v0.3.0 and above](https://github.com/yahoo/bullet-ui/releases/tag/v0.3.0) added support for charting and pivoting. Stay tuned for some tutorials on this feature.
250+
[Bullet UI v0.3.0 and above](https://github.com/yahoo/bullet-ui/releases/tag/v0.3.0) added support for charting and pivoting. This example shows how to get a basic chart on [Bullet UI v0.3.1](https://github.com/yahoo/bullet-ui/releases/tag/v0.3.1). If you are following the [Quick Start](../quick-start.md), then this should be in your UI. The charting and pivoting modes are only enabled for queries that are *not* Count Distinct or Group without Group Fields. This is because these results only have a single row and it does not make sense to graph them. They are enabled for all other queries.
251+
252+
The charting example below shows how to get a quick chart of a ```Group``` query with 3 metrics.
253+
254+
<video controls autoplay loop>
255+
<source src="../../video/charting.mp4" type="video/mp4">
256+
Your browser does not support the video tag.
257+
</video>
258+
259+
## Pivoting
260+
261+
If the regular chart option is insufficient for your result (for instance, you have too many groups and metrics or you want to post-aggregate your results or remove outliers etc), then there is a advanced Pivot mode available when you are in the Chart option. The Pivot option provides a drag-and-drop interface to drag fields to breakdown and aggregate by their values. Operations such as finding standard deviations, variance, average, median, sum over sums etc are available as well as easily viewing them as tables and charts. The following example shows a ```Group``` query with multiple groups and metrics and some interactions with the Pivot table.
262+
263+
!!! note "Raw data does not seem to have a regular chart mode option"
264+
265+
This is deliberate since the Chart option tries to infer your independent and dependent columns. When you fetch raw data, this is prone to errors so only the Pivot option is allowed. You can always graph within the Pivot option if you need to.
266+
<video controls autoplay loop>
267+
<source src="../../video/pivoting.mp4" type="video/mp4">
268+
Your browser does not support the video tag.
269+
</video>

docs/video/charting.mp4

398 KB
Binary file not shown.

docs/video/pivoting.mp4

2.7 MB
Binary file not shown.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ extra:
3434
extra_css:
3535
- css/extra.css
3636

37-
copyright: "Bullet is licensed under the <a href='https://github.com/yahoo/bullet/blob/master/LICENSE'>Apache 2 license"
37+
copyright: "Bullet is licensed under the <a href='https://github.com/yahoo/bullet/blob/master/LICENSE'>Apache 2 license"

0 commit comments

Comments
 (0)