We want to implement a very simple HTTP Server into our application. This webserver should serve a webside which contains the actual chart view as JPG.
Everytime the webside is requested from the browser the chart should be refreshed. For use the following code for that:
Code: Select all
TeeSaveToJPEGFile( Chart1, // Chart ...
FHTMLDir + '\mychart.jpg', // Path
False, // not gray scale
jpBestQuality,
95, // compression
640, //Chart1.Width,
480); //Chart1.Height );
The problem is that our application adds every second new values to the series. So do you have any idea what causes this problem ?
Or could you make any suggestion what´s the best way to save a chart into a JPG file while the chart is beeing updated constantly?
Greetz Dominik