title: Line Chart xAxis label with multiple colour using (iOS-charts) and LineChartData setValueTextColor
body: <p>Here i'm using iOS-charts to implement line chart. I'm stuck with using multiple colours for xAxis labels and value at each data point.</p>
  
  <p><a href="https://github.com/danielgindi/Charts" rel="nofollow noreferrer">https://github.com/danielgindi/Charts</a></p>
  
  <p>For xAxis i need NSAttributedString with two different colours, this is the code is used. Unable to figure it out how to do this.</p>
  
  <pre><code>    xChart.drawLabelsEnabled = true
      xChart.labelCount = 20
      xChart.labelFont = SomeFont
      xChart.labelTextColor = UIColor.white        
      xChart.labelPosition = .bottom
      xChart.labelHeight = 52.0
      xChart.granularityEnabled = true
      xChart.granularity = 1
      xChart.valueFormatter = IndexAxisValueFormatter(values: self.weeks)
  </code></pre>
  
  <p>similarly for valueTextColor at each data-point</p>
  
  <pre><code>    let lineChartData = LineChartData(dataSets: dataSets)
      self.lineChart.data = lineChartData
  
      // Enables Text above Circle - Color and Font
      lineChartData.setDrawValues(true)
      lineChartData.setValueTextColor(.white)        
      lineChartData.setValueFont(some font)
  </code></pre>
  
  <p>And used value formatter to be in <code>Int</code> </p>
  
  <p><a href="https://i.stack.imgur.com/RJVxN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RJVxN.png" alt="This is what I want to implement the one with green circles with two different colors"></a></p>
  
  <p>This is what I want to implement the one with green circles with two different colors</p>
  
  <p><a href="https://i.stack.imgur.com/r5vQz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r5vQz.png" alt="This is what I got"></a></p>
  
  <p>This is what I got</p>
  
  <p>Can anyone provide a solution to this??</p>
  
  <p>Answered by @CodeChanger has fixed one issue, looking forward for another one at bottom of the image <code>19 Jun</code></p>