midWidth = area.width / 2 + startx;
int halfLineWidth = (int) (totalx * 0.30);
boxLeft = midWidth - halfLineWidth;
boxRight = midWidth + halfLineWidth;
Range viewRange = new Range(starty, starty+totaly);
minPx = (int) range.scaleTo(min, viewRange);
maxPx = (int) range.scaleTo(max, viewRange);
q1Px = (int) range.scaleTo(q1, viewRange);
q3Px = (int) range.scaleTo(q3, viewRange);
medianPx = (int) range.scaleTo(median, viewRange);