function drawPoints(ctx, points, radius, color) {
  const data = points.buffer().values;

  for (let i = 0; i < data.length; i += 2) {
    const pointY = data[i];
    const pointX = data[i + 1];

    if (pointX !== 0 && pointY !== 0) {
      ctx.beginPath();
      ctx.arc(pointX, pointY, radius, 0, 2 * Math.PI);
      ctx.fillStyle = color;
      ctx.fill();
    }
  }
}
function drawPoints(ctx, points, radius, color) {
  const data = points.buffer().values;

  for (let i = 0; i < data.length; i += 2) {
    const pointY = data[i];
    const pointX = data[i + 1];

    if (pointX !== 0 && pointY !== 0) {
      ctx.beginPath();
      ctx.arc(pointX, pointY, radius, 0, 2 * Math.PI);
      ctx.fillStyle = color;
      ctx.fill();
    }
  }
}
function drawPoints ( ctx , points , radius , color ) { const data = points . buffer ( ) . values ; for ( let i = 0 ; i < data . length ; i += 2 ) { const pointY = data [ i ] ; const pointX = data [ i + 1 ] ; if ( pointX !== 0 && pointY !== 0 ) { ctx . beginPath ( ) ; ctx . arc ( pointX , pointY , radius , 0 , 2 * Math . PI ) ; ctx . fillStyle = color ; ctx . fill ( ) ; } } }
Used by the drawHeatMapValues method to draw heatmap points on to
the canvas
Used by the drawHeatMapValues method to draw heatmap points on to the canvas
Draw a polygon of points