<%@LANGUAGE="JAVASCRIPT" %> <% // Create the diagram. var diagram = new DiagramGenerator; // Get the values var q1_2000 = Request.Item("q1_2000"); var q2_2000 = Request.Item("q2_2000"); var q3_2000 = Request.Item("q3_2000"); var q4_2000 = Request.Item("q4_2000"); var q1_2001 = Request.Item("q1_2001"); var q2_2001 = Request.Item("q2_2001"); var q3_2001 = Request.Item("q3_2001"); var q4_2001 = Request.Item("q4_2001"); // Settings ---------------------------------------------------------------------------------------------- // Set the size of the image. // SetImageSize(x, y) diagram.SetImageSize(330, 280); // Set the values of the diagram bars. // SetValues(text1, text2, text3, text4, value1A, value2A, value3A, value4A, value1B, value2B, value3B, value4B) diagram.SetValues(" Q1", " Q2", " Q3", " Q4", q1_2001, q2_2001, q3_2001, q4_2001, q1_2000, q2_2000, q3_2000, q4_2000); // Set the max value of the background. // It is possible to set a value that is lower than the highest bar value. // SetMaxValue(value) diagram.SetMaxValue(10); // Set the bar marks on/off -> true/false. // SetBarMarks(value) diagram.SetBarMarks(false); // Sets the sizes of the bars. // * The "heightmultiplicator" affects the height of the background and the bars. This value should be at least 15. // * The "xSpacing" and "ySpacing" are the spaces between the bars. // SetBarSize(width, depth, heightmultiplicator, xSpacing, ySpacing) diagram.SetBarSize(20, 5, 20, 35, 10); // Sets the font of the labels. // SetFont(font, size, bold, italic, color) diagram.SetFont("Tahoma", 12, false, 0x554466); // Sets the colors of the bars. // * Do NOT use the same color for "lineA" and "lineB". // SetBarColors(lineA, frontA, topA, rightA, lineB, frontB, topB, rightB) diagram.SetBarColors(0x332255, 0x7766cc, 0x9988ee, 0x6655aa, 0x665588, 0x9088cc, 0xa599dd, 0x8070aa); // Sets the colors of the background. // * Do NOT set "line" to the same color that is used for "lineA" and "lineB" in "SetBarColors(...)". // SetBgColors(line, front, top, left, shadow) diagram.SetBgColors(0x557755, 0xbbddbb, 0xeeffee, 0x99c499, 0x779977); // Set the gradient colors. // If you do not want to use gradient colors, set "upperColor" and "lowerColor" to the same color. // SetGradientColors(upperColor, lowerColor) diagram.SetBgColor(0xF7F7F7); // Optional settings ---------------------------------------------------------------------------------------------- // Draw the diagram diagram.DrawDiagram(); %>