feat: add "filled" chart type

This commit is contained in:
Joshua Seigler 2017-02-07 11:46:41 -05:00
parent 945ad8d2be
commit 5e4e6277c8
2 changed files with 20 additions and 8 deletions

View file

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