SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
My axis is SCICategoryDateTimeAxis type. And using SCIZoomPanModifier (SCIClipMode_ClipAtExtents) to scroll chart
I’m using setVisibleRangeLimit: method to clip the axis during ZoomExtents
Until v. 22.214.171.1241 it’s work like a charm. But now something had have broken. And it’s doesn’t allow me to scroll chart at right way. It show me all of the data range on chart or only left side.
So can you fix it?
I’ve fixed it. But there are some changes in category axis. Now Visible range and visible range limit work with indexes, not with value. So you should pass range of indexes for visible range limit. (in v126.96.36.1993)
Here small example how to work with the visible range:
axis = [[SCICategoryDateTimeAxis alloc] init]; axis.axisId = @"X1"; NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; dateFormat.dateFormat = @"YYYY-MM-dd"; id<SCIDataSeriesProtocol> dataSeries = self.dataSeries; int minIndex = [[dataSeries xValues] indexOf:SCIGeneric([dateFormat dateFromString:@"2001-06-13"]) IsSorted:YES SearchMode:SCIArraySearchMode_Nearest]; int maxIndex = [[dataSeries xValues] indexOf:SCIGeneric([dateFormat dateFromString:@"2004-06-13"]) IsSorted:YES SearchMode:SCIArraySearchMode_Nearest]; axis.visibleRangeLimit = [[SCIDoubleRange alloc] initWithMin:SCIGeneric(minIndex) Max:SCIGeneric(maxIndex)];
Best Regards, Mykola
Please login first to submit.