Explorar o código

Start Y axis at 50

Fela Maslen %!s(int64=5) %!d(string=hai) anos
pai
achega
ad34cbf092
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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