private void setMarketPathToScale() {
		graphInterval = (frameW - 2 * SIDE_BUFFER)
				/ (marketComparison.size() - 1);
		gridLines.clear();
		float minimumPt = findMinimum(marketComparison.values());
		float maximumPt = findMaximum(marketComparison.values());
		// System.out.println("range: "+minimumPt+"   ---   "+maximumPt);
		float range = maximumPt - minimumPt;
		float localScale = (frameH - 2 * SIDE_BUFFER) / range;
		GeneralPath graph = new GeneralPath();
		int i = 0;
		for (float f : marketComparison.values()) {
			float xpt = SIDE_BUFFER + graphInterval * i;

			float ypt = frameH - (SIDE_BUFFER + localScale * (f - minimumPt));
			// System.out.println("POINTS IN PATH: "+xpt+"   ---   "+ypt);

			GeneralPath gridL = new GeneralPath();
			gridL.moveTo(xpt, 0);
			gridL.lineTo(xpt, frameH);
			gridLines.add(gridL);

			if (i == 0) {
				graph.moveTo(xpt, ypt);

			} else {
				graph.lineTo(xpt, ypt);
			}
			i++;
		}

		viewMarket = (graph);

	}