Changing scale of x-axis and the width of the chart when zooming
Beforehand, sorry for the bad english. I am trying to make a line chart that the initial scale of the x-axis is compressed to fit the initial width of the chart. Then, the chart allows the user to zoom or expand the scale of the x-axis gradually from "MM/DD" to "HH:mm" and at the same time, the width of the chart is extended to cover all x-axis ticks. Is there a library capable to perform the task above in reactjs ?
Source: JavaSript – Stack OverflowNovember 5, 2021