INNER CODE UNIT · TypeScript

diff

margelo/react-native-graph · src/CreateGraphPath.ts:105

  const diff = yRange.max - yRange.min;
  const y = value;

  return (y - yRange.min) / diff;
};

export const getYInRange = (
  height: number,
  value: number,
  yRange: GraphYRange
): number => {
  return Math.floor(height * getYPositionInRange(value, yRange));
};

export const getPointsInRange = (
  allPoints: GraphPoint[],
  range: GraphPathRange
) => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…