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

Zooming with new ChartSeriesItems

1 Answer 21 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 1
Mario asked on 02 Dec 2008, 12:30 PM

Hello people!

I'm using a RadChart, where I create the ChartSeries in VB code.

My X Axis is time, and I'm interpolating values from database. In the interpolation, I can choose the interpolation interval, which defines the precision of my chart. This interpolation time defines the frequency where points will be generated. Example: 10s means, one point generated for every 10s in X axis.

This is working fine.

Now I want to change the interpolation time interval when user uses zoom in the graph. The reason is because with zoom, X axis will be smaller than before, and then, I can have more precision.

 

I need to interpolate again and generate the ChartSeries again when the zoom is required. Does anyone know how to handle this?

 

Thanks in advance.

 

Best regards,

 

Mario

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 08 Dec 2008, 12:56 PM
Hello Mario,

Unfortunately we have not exposed a server side event on the control which is triggered whenever the zoom level is changed. I'm guessing this would be a convenient spot for you to perform this change.

As an alternative solution I would suggest to use the PreRender stage to check the zoom factor and adjust your interpolation to an appropriate number based on the zoom factor. To check the zoom factor you can use the ClientSettings object of RadChart.

We will consider adding an event to facilitate this process.

All the best,
Vladimir Milev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Mario
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or