This is a migrated thread and some comments may be shown as answers.

Read current pan value

1 Answer 51 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Borislav
Top achievements
Rank 1
Borislav asked on 23 Oct 2017, 04:34 AM

Hello,

can you tell me how to read current pan values? I need it for the purpose of storing it in a variable and restoring pan settings afterwards.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 23 Oct 2017, 08:18 AM
Hello Borislav,

You can get the pan values with the following code:
private void radButton1_Click(object sender, EventArgs e)
{
    var chart = radChartView1.View as IChartView;
    Console.WriteLine(chart.PlotOriginX);
    Console.WriteLine(chart.PlotOriginY);
}

I hope this will be useful. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ChartView
Asked by
Borislav
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or