find the total distance of point on x axis in js?

I am creating a program in JavaScript that will detect the line is in parallel to x or Y axis so here I want to distance of 5+3-2=6 for total distance but here I get the distance of 5+3=8 and 5-2=3 so how to do like that I will get the result like 5+3-2.code is… Read More find the total distance of point on x axis in js?

Why the scatter plot is plotting zero data points when the data has no zero values

I want to plot a scatter plot between ambienttemp and lightintensity. Based on the distribution for light intensity, there is no zero values, the min value is 10. enter image description here But my scatter plot is plotting zero or values less than zero enter image description here Here is my code xs = df_combinedAL[‘AmbientTemp’].values… Read More Why the scatter plot is plotting zero data points when the data has no zero values