소스 검색

Start Y axis at 50

Fela Maslen 5 년 전
부모
커밋
ad34cbf092
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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