Browse Source

Start Y axis at 50

Fela Maslen 5 năm trước cách đây
mục cha
commit
ad34cbf092
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/graph-cases.tsx

+ 1 - 1
src/components/graph-cases.tsx

@@ -62,7 +62,7 @@ const GraphCases: React.FC<Props> = ({ countries }) => {
           tickFormatter={dateTickFormatter}
           type="number"
         />
-        <YAxis tick yAxisId="left" />
+        <YAxis tick yAxisId="left" domain={[50, 'auto']} />
         <CartesianGrid stroke="#f5f5f5" />
         {countries.map(({ country, color }) => (
           <Line