react chart library nivo stream bottom index custom

OwlSuri·2023년 3월 9일
0
             axisBottom={{
                orient: "bottom",
                tickSize: 5,
                tickPadding: 5,
                tickRotation: 0,
                legend: "",
                legendOffset: 36,
                format: (index) => {
                  for (let i = 0; i <= data.length; i++) {
                    if (index === i) return data[i].label;
                  }
                },
              }}

profile
기억이 안되면, 기록을 -

0개의 댓글