Hello everyone,
I'm trying to plot a temperature against time graph that spans across for example the last 24hrs and my xAxis is DateTime with this configuration:
let xAxis = chart.xAxis as! TKChartDateTimeAxis
xAxis.style.lineStroke = TKStroke(color: UIColor.blueColor())
xAxis.majorTickIntervalUnit = TKChartDateTimeAxisIntervalUnit.Hours
xAxis.majorTickInterval = 4
xAxis.style.majorTickStyle.ticksHidden = false
xAxis.range = TKRange(minimum: xMin, andMaximum: xMax)
The end result looks like this:
What I'm missing (if possible) is to "show" the date has changed, so before 00:00 to show yesterday's date (e.g. 12/05) and after 00:00 to show today's date (13/05) so it is more 'user friendly' is this something possible?
Thanks!