Basically I want to make a scatter plot of a data set with three series : (1) for x (2) for y (3) a third series which takes only 0 and 1.
I want the point with 3rd series value = 0 to appear as red while blue for the rest of the points.
I am using Google Charts, they had a color fill option in https://developers.google.com/chart/image/docs/gallery/scatter_charts but this is deprecated and is no longer used. Can anyone provide the required commands to do the same.
If I read your question correctly, you aren't trying to show the 3rd series and are just trying to set the color of the point based on that value. If that is correct, you can do something like this:
https://developers.google.com/chart/interactive/docs/points
I'm not sure how this is related to a gradient though.
edit:
After taking a second look, it seems as though you want to reformat your data into 3 columns,
Student Id
,Class 1
,Class 2
, then assign colors via options.Each column after the first will be a label: