added candlesticks

This commit is contained in:
Joshua Seigler 2016-07-07 03:26:51 -04:00
parent efc5816507
commit 9cf422cdc1
3 changed files with 71 additions and 37 deletions

View file

@ -18,7 +18,7 @@ $router->map('GET', '/', function() {
});
// map cryptocurrency stuff
$router->map( 'GET', '/charts/[dark|light|sparkline:theme]/[a:curA]-[btc:curB]/[a:duration]/[svg|png:format]', function($theme, $curA, $curB, $duration, $format) {
$router->map( 'GET', '/charts/[dark|light|sparkline|candlestick:theme]/[a:curA]-[btc:curB]/[a:duration]/[svg|png:format]', function($theme, $curA, $curB, $duration, $format) {
require __DIR__ . '/views/chart.php';
return renderChart(
$theme,