![]() ![]() Editing Your Chart Continued: On the last page we changed the text of the legend. Now we are going to change the values used to draw the pie. Step 1: Open the MyFirstChart.html file again using Notepad. Step 2: Locate the line where it says: <PARAM NAME="Value_1" VALUE="541"> and change 541 in to 1000. The edited line should now look like this: <PARAM NAME="Text_1" VALUE="1000"> Step 3: In the same way change: 412 to 750 357 to 500 298 to 250 The code should now look like this: <HTML><BODY> <!-- Start HanengCharts Code --> <APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=350> <PARAM NAME="LicenseKey" VALUE="DEMO-DTKTG2s3R8xNVzNVFxN"> <PARAM NAME="ChartType" VALUE="3DPie"> <PARAM NAME="Title" VALUE="Units Sold"> <PARAM NAME="Text_1" VALUE="Coca Cola"> <PARAM NAME="Text_2" VALUE="Pepsi"> <PARAM NAME="Text_3" VALUE="Sprite"> <PARAM NAME="Text_4" VALUE="Fanta"> <PARAM NAME="Value_1" VALUE="1000"> <PARAM NAME="Value_2" VALUE="750"> <PARAM NAME="Value_3" VALUE="500"> <PARAM NAME="Value_4" VALUE="250"> </APPLET> <!-- End HanengCharts Code --> </BODY></HTML> Step 4: Save the changes and upload the MyFirstChart.html file to your web server overwriting the old file. Step 5: View the MyFirstChart.html on your web server again. It should now look like this: See the change? Mouse over each pie slice to see its value. |