

And though altcoins are often overlooked, their market share has grown substantially over the past five years.Įther has experienced sharp spikes and tumbles in its price as enthusiasts speculated on a wide variety of applications for the ethereum blockchain. Even as it returned 103% on average each year, bitcoin's share of the cryptocurrency market tumbled from nearly 90% in December 2016 to less than 43% as of January 2022, as ether and altcoins have expanded.Įther accounts for the first leg of that lopsided growth. We weren't surprised to discover that bitcoin accounted for most of the growth of the cryptocurrency market in aggregate during its early history, but it was surprising to see that bitcoin has rapidly lost market share to these other cryptocurrencies in recent years.Īs shown in the chart below, from January 2017 through January 2022, a market-cap-weighted index of the 100 next-largest cryptocurrencies outperformed bitcoin by more than 75 percentage points annualized. As Bitcoin Loses Market Share, Newer Entrants Drive Crypto Growth That effort culminated in the publication of Morningstar's 2022 Cryptocurrency Landscape, the first of its kind. And different blockchains support different kinds of cryptocurrencies: Bitcoin, for instance, lives on the bitcoin blockchain ether exists on the ethereum blockchain.Īs the cryptocurrency market has grabbed the attention of the rest of the investing world and shaken off some of the early scepticism around its viability, we decided to take a deeper look at the forces driving its improbable rise. The permanence of this mechanism is, for example, how nonfungible tokens, or NFTs, obtain their certificates of authenticity. These cryptocurrencies are powered by the underlying technology of blockchains, which register every transaction and cannot be altered. And then there are "altcoins," a category that includes all the other cryptocurrencies, such as ripple and litecoin.
CRYPTO COMPARE GRAPH CODE
The second-largest cryptocurrency is ether, whose main difference from bitcoin is its purpose: where bitcoin's construction is quite simple and is meant primarily to serve as an alternative currency, ether's also contains the code to trigger sales and purchases when certain criteria are met (known as "smart contracts"). There are a couple of key things to understand about the cryptocurrency universe up front: the different kinds of cryptocurrencies and how they're powered by different blockchains.Īlthough bitcoin is the best-known cryptocurrency, there are numerous others available. Bitcoin alone has a market cap that would rank in the top 10 largest companies in the S&P 500. We have now set our x domain to contain the appropriate times for our x-axis.Cryptocurrencies now represent the fourth-most popular type of investment among investors, behind only stocks, mutual funds, and bonds. In our code d3.extent passes the minimum and maximum numbers from our time data and passes this to the domain.

The d3.extent method takes an array and returns the minimum and maximum values. In this line of code we are passing the time from our data (d.time) to D3’s extent method. The project will use the following technologies:ĭata.forEach(function(d))) Plotting the Bitcoin prices from the last year on a line chart.Making a request to the CryptoCompareAPI.Everything from bar graphs, choropleth maps, force directed graphs, bubble graphs and much more can be made for the web using D3 and HTML/SVG/CSS.Ĭheck out the beautiful projects on the D3 Github page to get an idea of the wide range of projects that can be built with the library. Although the learning curve is a bit steep learning D3 is worth the time due to the tremendous amount of data visualization projects you can create with it.

D3 is one of the best Javascript data visualization libraries out there and is extremely popular.
CRYPTO COMPARE GRAPH HOW TO
In this tutorial I'll show you how to make a Bitcoin price chart using D3.jsĭ3.js is an open source Javascript library that stands for Data Driven Documents.
