nivo 图表线仅出现部分

问题描述

我的 Nivo 行只显示行的一部分。

当我悬停鼠标时我可以看到数据。

但我不知道为什么它只显示了一点点。

enter image description here

这是线路设置..

有人遇到过同样的问题吗?

请帮帮我..

<ResponsiveLine
     data={lineData}
     margin={{ top: 50,right: 110,bottom: 50,left: 50 }}
     xScale={{
          type: "time",format: "%Y-%m-%d",precision: "day"
     }}
     xFormat="time:%Y-%m-%d"
     yScale={{ type: 'linear',min: 'auto',max: 'auto',stacked: true,reverse: false }}
     axisTop={null}
     axisRight={null}
     axisBottom={{
          format: "%b %d",orient: 'bottom',tickSize: 5,tickPadding: 5,tickRotation: -38,tickValues: 20,legend: 'Date',legendOffset: 45,legendPosition: 'middle'
     }}
     axisLeft={{
          orient: 'left',tickRotation: 0,}}
     theme={{
          tooltip: {
               container: { color: 'black' }
          }
     }}
     colors={{ scheme: 'blues' }}
     enableGridX={false}
     enablePoints={false}
     pointSize={10}
     pointColor={{ from: 'color' }}
     pointBorderWidth={0}
     pointBorderColor={{ from: 'serieColor' }}
     pointLabelYOffset={-12}
     useMesh={true}
     animate={true}
/>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)