How to plot negative and positive numbers on AxisLeft on D3.JS

Hi Guys, I am learning D3.js and I have learnt how to plot Bar Chart. But I am stuck at a problem. I am unable to plot negative numbers on Axis. I decided to use bitcoin percentage change in price on yearly basis to create a bar chart and for all those years where price was negative on YoY basis, The bar chart should show a negative bar but it simply shows nothing which is puzzling me. Can you please help me?

Here is the link to project - Bitcoin Price Visualization (

you can have a look at my code at croy47/BarChart_Using_D3 (

The data I used can be found at perCentChange.csv

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.