title: iOS Charts - How to set different color of exact vertical grid line than have others
body: <p>In my application I'm using <a href="https://github.com/danielgindi/Charts" rel="nofollow noreferrer">iOS Charts</a> and I want to split my line chart to sectors by vertical grid line with different color than have others (someting like on chart below). I looked into documentation but I didn't find any solution how to do that. I know only how to change color of all grid lines at once. Thanks for any advice. </p>
  
  <p><a href="https://i.stack.imgur.com/ltK5j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ltK5j.png" alt="example chart"></a> </p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Here is my solution. I have array with x positions for vertical lines and in for loop I will add limit lines to chart.   </p>
  
  <pre><code>for k:Int in 0 ..&lt; limitLines.count {
  
          let limitLine = ChartLimitLine()
          limitLine.lineColor = UIColor.red
          limitLine.limit = limitLines[k]
          limitLine.lineWidth = 0.8
          lineChartView.xAxis.addLimitLine(limitLine)
  
   }
  </code></pre>
  
  <p>Here is resulting chart.</p>
  
  <p><a href="https://i.stack.imgur.com/OJJnM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OJJnM.png" alt="enter image description here"></a></p>