Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace AmCharts

AmCharts namespace is create automatically when amcharts.js or amstock.js file is included.

Index

Variables

Let baseHref

baseHref: boolean

Set it to true if you have base href set for your page. This will fix rendering problems in Firefox caused by base href.

Let dayNames

dayNames: string[]

Array of day names, used when formatting dates (if categoryAxis.parseDates is set to true) ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']

Let monthNames

monthNames: string[]

Array of month names, used when formatting dates (if categoryAxis.parseDates is set to true) [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November','December' ]

Let shortDayNames

shortDayNames: string[]

Array of short versions of day names, used when formatting dates (if categoryAxis.parseDates is set to true) ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']

Let shortMonthNames

shortMonthNames: string[]

Array of short versions of month names, used when formatting dates (if categoryAxis.parseDates is set to true) ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']

Let theme

theme: any

Set global used AmCharts theme.

Let themes

themes: any

Object with existing themes.

Let useUTC

useUTC: boolean

Set it to true if you want UTC time to be used instead of local time.

Functions

addInitHandler

  • addInitHandler(handler: () => {}, types?: string[]): any
  • Set a method to be called before initializing the chart. When the method is called, the chart instance is passed as an attribute. You can use this feature to preprocess chart data or do some other things you need before initializing the chart.

    Parameters

    • handler: () => {}

      The method to be called.

        • (): {}
        • Returns {}

    • Optional types: string[]

      Which chart types should call this method. Defaults to all if none is passed.

    Returns any

clear

  • clear(): void
  • Clears all the charts on page, removes listeners and intervals.

    Returns void

makeChart

  • makeChart(selector: string, params: any, delay?: number): AmChart
  • Create chart by params.

    Parameters

    • selector: string
    • params: any
    • Optional delay: number

    Returns AmChart

Generated using TypeDoc