I have a graph that visualizes data by day. Graphics type: AreaChart, library: Recharts ( http://recharts.org )

Problem: When changing the parameters by which the graph is drawn, the graph itself is redrawn and the position of the X axis changes slightly. Changing the position of the axis looks very poor, as if the layout of the entire widget breaks. (The position of the axis changes, because dates are attached to it, and I change the period).

Is there any way to fix the axis itself so that the axis line does not jump? "Tiki" let them change on the axis as they want, this is a natural behavior, but the jumping axis looks like a breaking layout.

enter image description here

enter image description here

  • Try to wrap in <ResponsiveContainer> - DiDex
  • it's already done - Dmitry Esin

0