Hello, I’m trailing your library right now. I would like to be able to move the graph around as well as a cursor on the graph. So I enabled both SCIZoomPanModifier and SCICursorModifier. But since both use one finger panning, the result wasn’t that good. Do you have any guidance for solving the conflict and letting them working together? I’m thinking to do it in the following way: if the touch location is within certain pixel range of the cursor, panning action will move the cursor, otherwise it moves the graph. Is it possible? Thanks
- Haoran Xie asked 4 years ago
- last active 4 years ago
I have two question on iOS Chart.
1.How can I customize the display value for tooltip generated by SCICursorModifier? I would like to set the following:
The text color of OHLC value should be set according to prev. close value.
2.The function setVisibleRange is working for SCIDateTimeAxis but not SCICategoryDateTimeAxis
Here is the initialization of the axis:
id axis = [[SCICategoryDateTimeAxis alloc] init];
axis.axisId = @”X1″;
Set the visible range after receiving the data
SCICategoryDateTimeAxis *xAxis = (SCICategoryDateTimeAxis *)[[surface xAxes] getAxisById:@”X1″];
[xAxis setVisibleRange:[[SCIDateRange alloc] initWithDateMin: Max:]];`
I tried to replace the axis type from SCICategoryDateTimeAxis to SCIDateTimeAxis, it works well. Any idea about this?
- Chris Yeung asked 5 years ago
- last active 5 years ago
Is there possibility to show CursorModifier by simply changing switch state?
According to custom tooltip behaviour it is possible for SCITooltipModifier. And it’s work at v 2.0.0.xxxx
So can you provide a code with redefinitions of private Api methods for this situation?
UDP: What is the best practice to customize tooltip’s data view?
- Andrei Sushynski asked 6 years ago
- last active 6 years ago