title: react-native-chart-kit Line chart with 1 segment doesn't print y-label
body: <p>I have the below code where there are only 2 values on the y-axis which means a single segment should suffice. But it turns out the y-label for the top line doesnt come up. Is there a fix for this? <a href="https://i.stack.imgur.com/V4AAV.png" rel="nofollow noreferrer">Current Chart state</a></p>
  
  <p>Below is the code I have written for this.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt; LineChart
  data = {
    dataFrame
  }
  width = {
    width - 20
  }
  height = {
    height
  }
  withShadow = {
    true
  }
  withDots = {
    true
  }
  withScrollableDot = {
    true
  }
  withOuterLines = {
    true
  }
  transparent = {
    true
  }
  withInnerLines = {
    true
  }
  chartConfig = {
    {
      backgroundColor: '#fff000',
      backgroundGradientFrom: '#ffffff',
      backgroundGradientTo: '#fffffa',
      decimalPlaces: 0,
      linejoinType: 'round',
      scrollableDotFill: '#fff',
      scrollableDotRadius: 6,
      scrollableDotStrokeColor: 'tomato',
      scrollableDotStrokeWidth: 3,
      scrollableInfoViewStyle: {
        justifyContent: 'center',
        alignContent: 'center',
        backgroundColor: '#121212',
        borderRadius: 2,
        marginTop: 25,
        marginLeft: 25,
      },
      scrollableInfoTextStyle: {
        fontSize: 10,
        color: '#C4C4C4',
        marginHorizontal: 2,
        flex: 1,
        textAlign: 'center',
      },
      scrollableInfoSize: {
        width: 30,
        height: 30
      },
      scrollableInfoOffset: 15,
      labelColor: (opacity = 1) =&gt; `rgba(0, 0, 0, ${opacity})`,
      color: (opacity = 1) =&gt; `rgb(78, 135, 210, ${opacity})`,
      propsForBackgroundLines: {
        strokeDasharray: '', // solid background lines with no dashes
        strokeDashoffset: 15,
      },
    }
  }
  segments = {1}
  /&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any help appreciated.</p>