I have crosshairs and tooltips (And custom tooptips) working fine on long press of a column chart series, but I would like to have an initial column selected with its tooltip showing on start up.
How would one show a tooltip programmatically in ShinobiChats for Android?
I was hoping it would be as simple as - after initializing a column series and adding that to my shinobi chart… just calling setFocus() or setActivated(), but neither are working (and none of the below works either).
DataPoint<?,?> dataPoint = (DataPoint<Double, Double>) cs.getDataAdapter().get(0); Crosshair crosshair= shinobiChart().getCrosshair(); Tooltip tooltip = crosshair.getTooltip(); crosshair.enableTooltip(true); crosshair.setFocus(dataPoint); tooltip.requestLayout(); tooltip.setActivated(true);
Anyone done this successfully?