https://github.com/tomgp/d3-ternary
A Bower module for making ternary plots with d3. based on http://bl.ocks.org/tomgp/7766353
https://github.com/tomgp/d3-ternary
Last synced: 11 months ago
JSON representation
A Bower module for making ternary plots with d3. based on http://bl.ocks.org/tomgp/7766353
- Host: GitHub
- URL: https://github.com/tomgp/d3-ternary
- Owner: tomgp
- Created: 2014-05-05T12:38:01.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2021-06-18T10:24:52.000Z (almost 5 years ago)
- Last Synced: 2025-06-20T18:15:27.944Z (12 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
A couple of things to help make [ternary](http://en.wikipedia.org/wiki/Ternary_plot) plots in [d3](http://www.d3js.org)
The two things
1. A scale _tgp.d3.plot()_ that converts ordered triplets into x/y coordinates based on a range property (also you can draw lines).
2. An axis renderer which takes a _plot_ and draws a triangle with subdivisions. TO DO: add axis labels.
Have a look at index.html for example usage
Note: Bower? who uses Bower anymore? I really should update this.