def concentrated_units_chart(self, sales, upgrades, dates):
		# Want results for the last 2 weeks
		concentrated_result_set_num = 14
		concentrated_chart = None
		if len(sales) > concentrated_result_set_num:
			concentrated_chart = google_chart_api.LineChart()
			# Slice to create the line for the concentrated chart
			calc_concentrated_result_set = lambda x: x[len(sales) - concentrated_result_set_num :len(sales)]
			sales_concentrated = calc_concentrated_result_set(sales)
			dates_concentrated = calc_concentrated_result_set(dates)
			upgrades_concentrated = calc_concentrated_result_set(upgrades)

			concentrated_chart.AddLine(sales_concentrated, width=line_chart.LineStyle.THICK, label='Sales')
			if len(upgrades_concentrated) == concentrated_result_set_num - 1:
				concentrated_chart.AddLine(upgrades_concentrated, width=line_chart.LineStyle.THICK, label='Upgrades')

			concentrated_chart.left.min = 0
			max_upgrades_concentrated = 0
			max_sales_concentrated = 0
			if upgrades_concentrated:
				max_upgrades_concentrated = max(upgrades_concentrated)
			if sales_concentrated:
				max_sales_concentrated = max(sales_concentrated)

			concentrated_chart.left.max = max_upgrades_concentrated if max_upgrades_concentrated > max_sales_concentrated else max_sales_concentrated
			segment_gap = concentrated_chart.left.max / concentrated_result_set_num
			concentrated_vertical_labels = []

			for i in range(0, concentrated_result_set_num + 1):
				concentrated_vertical_labels.append(i * segment_gap)
				if len(concentrated_vertical_labels) == concentrated_result_set_num + 1: break
			if concentrated_vertical_labels[-1] < concentrated_chart.left.max:
				new_max = concentrated_vertical_labels[-1] + segment_gap
				concentrated_vertical_labels.append(new_max)
				concentrated_chart.left.max = new_max

			concentrated_chart.left.labels = concentrated_vertical_labels
			concentrated_chart.bottom.labels = dates_concentrated
			concentrated_chart.left.label_gridlines = True
			concentrated_chart.bottom.label_gridlines = True
			return concentrated_chart
		else:
			return None
dataset/ETHPy150Open baz/app-sales-machine/chart.py/SalesChart.concentrated_units_chart/original