const yData = isOHLC ? chartData.map(d => +d.close) : chartData.map(d => +d.quote);