amCharts Documentation
Search:     Advanced search
Browse by category:

Examples

Views: 487

Examples

The distribution package contains a number of example charts. These show the different styles that you can use. If you like one of the example charts, you can replace the data with your own, adjust the settings, and use it in your page.

Please note: the examples do not have individual copies of the SWF file! The example HTML files point to the location of the main SWF file in the distribution package, and the example data and settings files in their own folders. This means that the code snippet will not work right away.

The easiest way to use an example chart is this:

  1. Make an entirely new folder.
  2. Copy the contents of the distribution package into the new folder, minus the examples folder.
  3. Go back to the original distribution package. Open the examples/amstock/amstockX folder, where X is the number of the example you want.
  4. Copy the contents of this folder into the amstock folder, in the new location that you created in step 2.
  5. Open the examples folder of the distribution package. Find the amstockX.html file, where X is the same number as in step 3.
  6. Rename the file to amstock.html. (If the file had a different extension, not .html, then leave the original extension.)
  7. Copy the new amstock.html file to the new location. You will be asked if you want to overwrite the existing file. Confirm that you do. (If something goes wrong, you can always re-download the distribution package.)
  8. Open the amstock.html file in Notepad. Correct all the file and folder names. The data, settings and SWF file are now in the amstock/ folder.

Now you can edit the data, settings, code snippet, and anything else you need. Check the other help articles for information on that.

Others in this Category
document Getting Started
document Adding the Chart to a Page
document Charts in PowerPoint