Profile Picture

More problems with PagingView and ScaleConfigurator on an NStockSeries

Posted By David Cobbold 12 Years Ago

More problems with PagingView and ScaleConfigurator on an NStockSeries...

Author
Message
David Cobbold
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 7, Visits: 1
I posted similar problems a while ago, but on new data i'm having more problems.

My first problem is that I have data that may be on any day of the week, but I want the stock series to display them with no gaps. Previously I was using NValueTimelineScaleConfigurator with a NWeekDayRule to not show Saturday or sunday, but now what i'm looking for is to just display whatever bars I give the chart with no gaps in between due to missing values on certain days. Is this possible?

My second problem is that i would like to programatically scroll to a specified date, which i'm doing using the NNumericAxisPagingView (as in my other thread). But when combined with the NWeekDayRule and data that doesn't every day, this isn't scrolling to the correct place in the chart. My code is similar to before, although now will display 120 bars worth of data:


DateTime startDate = DateTime.FromOADate((double)stockSeries.XValues.GetValueForIndex(index));
DateTime endDate = DateTime.FromOADate((double)stockSeries.XValues[Math.Min(index + 120, stockSeries.XValues.Count - 1)]);
NNumericAxisPagingView dateAxis = new NNumericAxisPagingView(new NRange1DD(startDate.ToOADate(), endDate.ToOADate()));
dateAxis.Enabled = true;
cartChart.Axis(StandardAxis.PrimaryX).PagingView = dateAxis;
_chart.Refresh();


(where index is the previously calculated index of the chosen date to scroll to)


However once I comment out the NWeekDayRule code, this scrolling logic works correctly. So Is there some solution that will solve both of these problems?

Thanks.




Similar Topics


Reading This Topic