MPChart Android LimitLine没有显示反应原生

时间:2017-06-19 07:48:09

标签: android react-native mpandroidchart

我尝试在LineChart图表中使用limitLine但没有运气。以下是我在JSX中尝试的内容: -

<LineChart  style={styles.chartM} data={this.getWeekData(false)} description={"Week Wise"} 
                  visibleXRange={[0,30]}
                  maxVisibleValueCount={50} 
                  xAxis={{drawGridLines:false, gridLineWidth:1, position:"BOTTOM", spaceBetweenLabels:0, labelRotationAngle:-30.0, limitLines:[{ limit: 115, lineColor: processColor('red'), lineWidth: 2}]}}
                  yAxisRight={{enable:false}} 
                  yAxis={{startAtZero:false,drawGridLines:false,position:"INSIDE_CHART"}}
                  drawGridBackground={true}
                  backgroundColor={"#f2f2f2"} 
                  legend={{enable:true, position:'ABOVE_CHART_RIGHT', direction:"LEFT_TO_RIGHT"}}
                  gridBackgroundColor={"#f2f2f2"} 
                  scaleEnabled={false}/>

limitLine预计会出现在115,但即使在设置了limitLine道具之后也不会出现。

0 个答案:

没有答案