graph with given intersection yAxis