Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Aster plot - similar to radar chart (see desc) #101

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/examples/aster_plot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Aster Plot for Looker

Aster plots are used to display two metrics per slice in a pie chart visualisation. Each pie slice has a length and width component.

The first measure, the *length*, represents the **score** of each slice, is the value extending from the centre of the pie outwards to the edge (*0* is the centre and the outer circle length is defaulted to max value of all scores).

The second measure, the *width*, represents the **weight** of each slice, which gets used to arrive at a weighted mean score of the length scores in the centre. This score can also be overriden by entering a custom keyword search to use a row level value's length in place of the weighted mean score. See example below.

This implementation for Looker was built based on the [Ben Best’s Aster Plot in D3 Block](http://bl.ocks.org/bbest/2de0e25d4840c68f2db1).


## Example
![Screenshot](https://github.com/davidtamaki/aster_plot/blob/master/screen-shots/aster_example.gif)


## Implementation Instructions
1. Fork this repository

2. Turn on [GitHub Pages](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/)

3. Follow directions on Looker's documentation to add a [new custom visualisation manifest](https://docs.looker.com/admin-options/platform/visualizations#adding_a_new_custom_visualization_manifest):
- In the 'Main' field, the URI of the visualization will be `https://DOMAIN_NAME/aster_plot/aster_plot.js`. For example: https://davidtamaki.github.io/aster_plot/aster_plot.js
- The required dependencies are:
- [d3](https://d3js.org/d3.v3.min.js)
- [d3-tip](https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.9.1/d3-tip.min.js)

Loading