Important version information!

You are browsing a class reference for deprecated Version 2 of the JavaScript Charts.

Documentation for other versions: amCharts 4 (current) or amCharts 3.

AmCharts

AmCharts object (it's not a class) is create automatically when amcharts.js or amstock.js file is included in a web page.

Properties

PropertyTypeDefaultDescription
baseHrefBooleanfalseSet it to true if you have base href set for your page. This will fix rendering problems in Firefox caused by base href.
dayNamesArray['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']Array of day names, used when formatting dates (if categoryAxis.parseDates is set to true)
monthNamesArray['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']Array of month names, used when formatting dates (if categoryAxis.parseDates is set to true)
shortDayNamesArray['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']Array of short versions of day names, used when formatting dates (if categoryAxis.parseDates is set to true)
shortMonthNamesArray['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']Array of short versions of month names, used when formatting dates (if categoryAxis.parseDates is set to true)
useUTCBooleanfalseSet it to true if you want UTC time to be used instead of local time.

Methods

NameParametersReturnsDescription
clear()Clears all the charts on page, removes listeners and intervals.

Events

AmCharts class does not have any events.