I tried using your code and it works, made some changes to the date formatter and also added…
Bob
1

Hi Bob,

Thanks for the response. I did test like you wrote and it seems that in that case the step on X-axis are so big that the bars are not showing when more than one data point is added.

If you change the updateChartWithData() -function’s part when creating the dataEntry like this for e.g:

let dataEntry = BarChartDataEntry(x: Double(i), y: Double(visitorCounts[i].count))

Then you should see the bars, but the dates on the x-axis are not correct, they are all something like 01/01/1970.

I try to look this when I have more time and if I figure some good solution I’ll post it here or update the original post and code on Github.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.