I've been trying to customize the tooltip in Shinobicharts but it won't work properly. I'm guessing it's the way I'm adding the crosshair-style that creates the problem. I'm ultimately just trying to customize the label of the tooltip, because once I added a custom crosshair-style, it became all black.
Anyways, my code looks like this:
let crossHairStyle = SChartCrosshairStyle()
crossHairStyle.lineColor = UIColor.whiteColor()
let chart = ShinobiChart(frame: view.bounds)
chart.licenseKey = ""
chart.datasource = self
chart.delegate = self
chart.gestureDoubleTapResetsZoom = true
chart.frame = CGRectMake(0, 0,width,0.9 * height)
chart.crosshair.style = crossHairStyle
chart.crosshair.tooltip.backgroundColor = UIColor.whiteColor()
chart.crosshair.tooltip.label.backgroundColor = UIColor.whiteColor()
chart.applyTheme(customTheme)
As I said, I am not able to set the backgroundcolor of the label, and I'm not sure how to proceed.
Any suggestions would be appreciated.