# Coca pod Chart not appearing (Swift4)

**URL:** <https://forums.kodeco.com/t/coca-pod-chart-not-appearing-swift4/45253>\
**Category:** Swift\
**Created:** [July 29, 2018, 2:19am UTC](https://forums.kodeco.com/t/coca-pod-chart-not-appearing-swift4/45253 "2018-07-29T02:19:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timswift](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/timswift/32/110937_2.png) [@timswift](https://forums.kodeco.com/u/timswift)\
**Post date:** [July 29, 2018, 2:19am UTC](https://forums.kodeco.com/t/coca-pod-chart-not-appearing-swift4/45253/1 "2018-07-29T02:19:53Z")

</div>

My chart is not displaying any bars using this bar graph. I have successfully imported the charts cocoa pod. There are currently no run time errors. The only thing that is being displayed in the graph is the description label.

```
              import UIKit
  import Charts
  class ViewController: UIViewController {

   @IBOutlet var lineChartVIew: BarChartView!
   var days: [String]!

 override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
days = ["Monday","Tuesday","life"]
let task = [1.0,4.0,3.0]
setChart(dataPoints: days, values: task)
  }

func setChart(dataPoints : [String], values : [Double]){
lineChartVIew.noDataText = "Nothining to display"

var dataEntries : [BarChartDataEntry] = []
var counter = 0.0

for i in 0..<dataPoints.count {
    counter += 1
    let dataEntery = BarChartDataEntry(x: values[i], y: counter)
    dataEntries.append(dataEntery)
}

let ChartDataSet = BarChartDataSet(values: dataEntries, label: "Time")
let chartData = BarChartData()
lineChartVIew.data = chartData
ChartDataSet.colors = ChartColorTemplates.colorful()

lineChartVIew.animate(xAxisDuration: 2.0, yAxisDuration: 2.0)
    }}

```

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [February 6, 2019, 5:26am UTC](https://forums.kodeco.com/t/coca-pod-chart-not-appearing-swift4/45253/3 "2019-02-06T05:26:08Z")

</div>

Opened on February 6, 2019, 5:26am UTC


