From 7ee55bbae6a4e0c2b7eb78daf41b92bd622de224 Mon Sep 17 00:00:00 2001 From: Igor Kroitor Date: Sun, 31 Dec 2017 00:45:12 +0300 Subject: [PATCH] updated examples for wider padding --- examples/js/basic-chart.js | 2 +- examples/js/binance-fetch-ohlcv.js | 2 +- examples/js/fetch-ohlcv-cex.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/js/basic-chart.js b/examples/js/basic-chart.js index 51b653f25d5b..6b9cfb4bc35f 100644 --- a/examples/js/basic-chart.js +++ b/examples/js/basic-chart.js @@ -19,7 +19,7 @@ require ('ansicolor').nice; const lastPrice = ohlcv[ohlcv.length - 1][index] // closing price const series = ohlcv.map (x => x[index]) // closing price const bitcoinRate = ('₿ = $' + lastPrice).green - const chart = asciichart.plot (series, { height: 15 }) + const chart = asciichart.plot (series, { height: 15, padding: ' ' }) log.yellow ("\n" + chart, bitcoinRate, "\n") process.exit () diff --git a/examples/js/binance-fetch-ohlcv.js b/examples/js/binance-fetch-ohlcv.js index 03f0fb10cf27..f49b6f47621f 100644 --- a/examples/js/binance-fetch-ohlcv.js +++ b/examples/js/binance-fetch-ohlcv.js @@ -20,7 +20,7 @@ require ('ansicolor').nice; const lastPrice = ohlcv[ohlcv.length - 1][index] // closing price const series = ohlcv.slice (-80).map (x => x[index]) // closing price const bitcoinRate = ('₿ = $' + lastPrice).green - const chart = asciichart.plot (series, { height: 15 }) + const chart = asciichart.plot (series, { height: 15, padding: ' ' }) log.yellow ("\n" + chart, bitcoinRate, "\n") process.exit () diff --git a/examples/js/fetch-ohlcv-cex.js b/examples/js/fetch-ohlcv-cex.js index d5ef62ce5822..c8056cbd51a3 100644 --- a/examples/js/fetch-ohlcv-cex.js +++ b/examples/js/fetch-ohlcv-cex.js @@ -19,7 +19,7 @@ require ('ansicolor').nice; const lastPrice = ohlcv[ohlcv.length - 1][index] // closing price const series = ohlcv.slice (-80).map (x => x[index]) // closing price const bitcoinRate = ('₿ = $' + lastPrice).green - const chart = asciichart.plot (series, { height: 15 }) + const chart = asciichart.plot (series, { height: 15, padding: ' ' }) log.yellow ("\n" + chart, bitcoinRate, "\n") process.exit ()