浏览代码

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