Skip to content

Commit

Permalink
updated examples for wider padding
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 30, 2017
1 parent b78255d commit 7ee55bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/js/basic-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

Expand Down
2 changes: 1 addition & 1 deletion examples/js/binance-fetch-ohlcv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

Expand Down
2 changes: 1 addition & 1 deletion examples/js/fetch-ohlcv-cex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

Expand Down

0 comments on commit 7ee55bb

Please sign in to comment.