Skip to content

Commit

Permalink
Example using Coinpaprika
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Eyrick authored Feb 12, 2019
1 parent 4002e34 commit 7e66cd2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!doctype html>
<html lang="en">
<head>
<title>JS Demo | Chartaholic</title>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<meta name='google' content='notranslate'>
<meta charset='utf-8'>
<link rel='stylesheet' href='chartaholic.css'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js" integrity="sha256-mpnrJ5DpEZZkwkE1ZgkEQQJW/46CSEh/STrZKOB/qoM="
crossorigin="anonymous"></script>
<script src="chartaholic.js"></script>
<script src="coinpaprika.js"></script>
</head><body>
<div id='chart'></div>
<script>
(async () => {
let title = "Ethereum (ETH)";
let slug = "eth-ethereum";
let start_date = "2018-09-20";
let ticks = await cp.candles(slug, start_date, { limit: 366 });
let chart = new Chartaholic("#chart", { theme: "blue", keys: { time: "time_open" }, ticks, title });
})();
</script>
</body></html>

0 comments on commit 7e66cd2

Please sign in to comment.