Profile Picture

Axis's PagingView.ViewRange issue

Posted By inhyuk son 14 Years Ago
Author
Message
inhyuk son
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 21, Visits: 1
Hi~~
I set a axis's PagingView.ViewRange property for a scroll.
But a ViewRange properity does'nt change.

Sample code is here.
I'll wait your answer. Thanks~

private void Form1_Load(object sender, EventArgs e)
{
Random random = new Random();
NChart chart = nChartControl1.Charts[0];

NLineSeries line = (NLineSeries)chart.Series.Add(SeriesType.Line);
line.DataLabelStyle.Visible = false;
line.Values.FillRandom(random, 100);

chart.Axis(StandardAxis.PrimaryX).ScrollBar.Visible = true;
chart.Axis(StandardAxis.PrimaryX).PagingView.Enabled = true;
chart.Axis(StandardAxis.PrimaryX).PagingView.ViewRange = new NRange1DD(0, 50);//It doesn't work.

//It does work. But I want to set only ViewRange.
//chart.Axis(StandardAxis.PrimaryX).PagingView = new NNumericAxisPagingView(new NRange1DD(0, 50));
//chart.Axis(StandardAxis.PrimaryX).PagingView.Enabled = true;

nChartControl1.Refresh();
}

private void button1_Click(object sender, EventArgs e)
{
//It does work.
nChartControl1.Charts[0].Axis(StandardAxis.PrimaryX).PagingView.ViewRange = new NRange1DD(0, 50);
nChartControl1.Refresh();
}




Similar Topics


Reading This Topic