AJAX and zooming
Posted: Wed Jun 15, 2011 3:39 pm
Hi,
Sorry for my English.
We have commercial version of TeeChart Pro 7.0 VCL.
TeeChart Pro 7.0 works great in our desktop application writen in Delphi 2005.
Now we want to buy TeeChart ASP.NET and translate our application in ASP.NET in Visual Studio 2010.
I downloaded trial version of TeeChart 2010 ASP.NET and started translate our application from Object Pascal to ASP.NET, C#
I have some questions:
1. How to implement AJAX data loading to WebChart ?
When chart is showing on the brower the first time, there should be visible only preview chart, with data loading at either position, for example, every hundredth
When the chart is zooming, component should download via AJAX more detailed data on the graph, and delete data from memory outside the scope of actual zoomlevel. In desktop program when data is loading to the chart an progressbar is displaying, but on website I would like to display data such as GoogleMaps for example - only when I zoom, the map appear more detailed data. Is it possible in newest TeeChart ?
2. How to translate this code ?:
procedure TfrmFuelChart.bZoomINClick(Sender: TObject);
var rect: TRect;
width: Integer;
begin
rect := Chart.ChartRect;
width := rect.Right - rect.Left;
rect.Left := rect.Left + Trunc(width / 10);
rect.Right := rect.Right - Trunc(width / 10);
Chart.ZoomRect(rect);
end;
after translating to C#
protected void bZoomIn_Click(object sender, EventArgs e)
{
Rectangle rect = WebChart1.Chart.ChartRect;
int width = rect.Right - rect.Left;
rect.X = rect.Left + (width / 10);
rect.Width = rect.Right - (width / 10);
WebChart1.Chart.Zoom.ZoomRect(rect);
}
WebChart1.Chart.ChartRect is {left: 0, top: 0, width: 0, height: 0}
3. Very simple example of programatically zooming also doesn't work:
http://carnet.sqnc.pl/teechart/
Please help.
Best Regards
Wieslaw Kubala
Sequence
http://sqnc.pl
Sorry for my English.
We have commercial version of TeeChart Pro 7.0 VCL.
TeeChart Pro 7.0 works great in our desktop application writen in Delphi 2005.
Now we want to buy TeeChart ASP.NET and translate our application in ASP.NET in Visual Studio 2010.
I downloaded trial version of TeeChart 2010 ASP.NET and started translate our application from Object Pascal to ASP.NET, C#
I have some questions:
1. How to implement AJAX data loading to WebChart ?
When chart is showing on the brower the first time, there should be visible only preview chart, with data loading at either position, for example, every hundredth
When the chart is zooming, component should download via AJAX more detailed data on the graph, and delete data from memory outside the scope of actual zoomlevel. In desktop program when data is loading to the chart an progressbar is displaying, but on website I would like to display data such as GoogleMaps for example - only when I zoom, the map appear more detailed data. Is it possible in newest TeeChart ?
2. How to translate this code ?:
procedure TfrmFuelChart.bZoomINClick(Sender: TObject);
var rect: TRect;
width: Integer;
begin
rect := Chart.ChartRect;
width := rect.Right - rect.Left;
rect.Left := rect.Left + Trunc(width / 10);
rect.Right := rect.Right - Trunc(width / 10);
Chart.ZoomRect(rect);
end;
after translating to C#
protected void bZoomIn_Click(object sender, EventArgs e)
{
Rectangle rect = WebChart1.Chart.ChartRect;
int width = rect.Right - rect.Left;
rect.X = rect.Left + (width / 10);
rect.Width = rect.Right - (width / 10);
WebChart1.Chart.Zoom.ZoomRect(rect);
}
WebChart1.Chart.ChartRect is {left: 0, top: 0, width: 0, height: 0}
3. Very simple example of programatically zooming also doesn't work:
http://carnet.sqnc.pl/teechart/
Please help.
Best Regards
Wieslaw Kubala
Sequence
http://sqnc.pl