heatmap, line chart 등 다양한 chart를 만들고 난 뒤 해당 chart의 특정 point, cell 등을 click하여 현재 본인이 선택한 state를 얻고 싶을 때가 있다. ex ) line chart에서 내가 click 한 특정 point 강조하기, heatmap의 click한 cell 하나 강조하기 ... React + Typescript 환경에서의 코드이다. const [nowIndex, setNowIndex] = useState(undefined); useEffect(() => { if (chartRef.current) { const chart = echarts.init(chartRef.current); // 정해진 option이 있다고 가정한다. chart.setOption(..