-
Notifications
You must be signed in to change notification settings - Fork 537
Data Plots
Thomas Han edited this page Oct 30, 2015
·
2 revisions
Wiki ▸ API Reference ▸ Plots ▸ Data
The simplest way to construct a candlestick chart is
var width = 900;
var height = 600;
// construct a domain with financetime scale
var x = techan.scale.financetime().range([0, width])
var y = d3.scale.linear().range([height, 0]);
var candlestick = techan.plot.candlestick().xScale(x).yScale(y);
TODO: example of candlestick with d3 time scale