Question about rendering chart under apache server
Posted: Wed Oct 22, 2008 6:02 pm
The Javascript under the apache server seems to get stuck at some of the charting code. I'm using teechart 5 active x.
This code gets rendered:
function onloadtchartIncidentsByDepartment() {
TChartComtchartIncidentsByDepartment.Chart = tchartIncidentsByDepartment;
tchartIncidentsByDepartment.Header.Font.Bold = true;
tchartIncidentsByDepartment.Header.Font.Name = "Arial";
tchartIncidentsByDepartment.Header.Font.Size = 14;
tchartIncidentsByDepartment.Header.Text.Clear();
tchartIncidentsByDepartment.Header.Text.Add("Incidents By Department");
This code below does not get rendered, I get a Javascript error.
"Object Expected"
The code is all in the same function:
tchartIncidentsByDepartment.Series(0).VerticalAxis = aLeftAxis;
tchartIncidentsByDepartment.Series(0).Add (3, "10K", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5JO", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5PA", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5SI", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (2, "ACC", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (23, "ADMIN", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (2, "ADMIT", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "GES", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (3, "QM", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "WCOMP", 536870912 );
Any ideas or help would be greatly appreciated.
This code gets rendered:
function onloadtchartIncidentsByDepartment() {
TChartComtchartIncidentsByDepartment.Chart = tchartIncidentsByDepartment;
tchartIncidentsByDepartment.Header.Font.Bold = true;
tchartIncidentsByDepartment.Header.Font.Name = "Arial";
tchartIncidentsByDepartment.Header.Font.Size = 14;
tchartIncidentsByDepartment.Header.Text.Clear();
tchartIncidentsByDepartment.Header.Text.Add("Incidents By Department");
This code below does not get rendered, I get a Javascript error.
"Object Expected"
The code is all in the same function:
tchartIncidentsByDepartment.Series(0).VerticalAxis = aLeftAxis;
tchartIncidentsByDepartment.Series(0).Add (3, "10K", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5JO", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5PA", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5SI", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (2, "ACC", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (23, "ADMIN", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (2, "ADMIT", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "GES", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (3, "QM", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "WCOMP", 536870912 );
Any ideas or help would be greatly appreciated.