I am developing a line chart using D3.js library and AngularJS in Ionic.
I want to customize the colour of data point depending on the value of Y-axis. Say,
the value is in range 0-30 show the data point in green colour,
the value is in range 31-40 show the data point in yellow colour,
the value is in range 41-60 show the data point in red colour etc.
I am using D3 for the first time. Can anyone help me with this?