HTML Image Maps using CalXPos and CalcYPos
Posted: Wed Jun 30, 2004 7:28 am
Hi Steema Group,
I'm currently going through one of your examples for Tchart v5 activeX provided in the "ASP Sever Examples" menu item, i'm trying to replicate the code within the "Create a static Chart image export with hotspots" example. I've imported the chart on the server and i'm trying to generate the hotspots on the serverside as well by calling the 'GenerateChartHotSpot' function included in your example. The problem is that some of the code relies on "CalcXPos" and "CalcYPos" which result in zero values, there are a few other properties like "Aspect.Height3D" and "Aspect.Width3D" which also result in a zero value.
I've concluded that the chart hasn't yet been drawn and have tried using the function 'RefreshData' to try and draw the chart.
I've looked around the newsgroups and found that someone else had a similar problem and was instructed to place the code in the "chart_OnAfterDraw" event (see http://216.101.185.148/scripts/isapi.dl ... le=5191736) but because the code is being run from a single call to the server it doesn't seem to draw the chart or catch any events. Is there anyway to force the chart to draw?
The chart has definately been populated as the seriescount property indicates series exist.
Regards,
Michael Horvath
I'm currently going through one of your examples for Tchart v5 activeX provided in the "ASP Sever Examples" menu item, i'm trying to replicate the code within the "Create a static Chart image export with hotspots" example. I've imported the chart on the server and i'm trying to generate the hotspots on the serverside as well by calling the 'GenerateChartHotSpot' function included in your example. The problem is that some of the code relies on "CalcXPos" and "CalcYPos" which result in zero values, there are a few other properties like "Aspect.Height3D" and "Aspect.Width3D" which also result in a zero value.
I've concluded that the chart hasn't yet been drawn and have tried using the function 'RefreshData' to try and draw the chart.
I've looked around the newsgroups and found that someone else had a similar problem and was instructed to place the code in the "chart_OnAfterDraw" event (see http://216.101.185.148/scripts/isapi.dl ... le=5191736) but because the code is being run from a single call to the server it doesn't seem to draw the chart or catch any events. Is there anyway to force the chart to draw?
The chart has definately been populated as the seriescount property indicates series exist.
Regards,
Michael Horvath