Back to amCharts.com

Line & Area chart custom functions

Functions that control the chart


flashMovie.clickSlice(index)

This function mimics a viewer clicking on a slice (pulling out the slice if pull-out is enabled). Index is the sequential number of the slice, counting from 0.


flashMovie.rollOverSlice(index)

This function mimics a viewer rolling over a slice (showing a balloon if it is enabled). Index is the sequential number of the slice, counting from 0.


rollOutSlice()

This function mimics a viewer rolling away from a slice (hiding a balloon if it is enabled).


Functions which are called by the chart

amSliceClick(chart_id, index, title, value, percents, color, description)

This function is called when the viewer clicks on the slice. It returns chart_id, the sequential number of the slice (index), the title, value, percent value, color and description.


amSliceOver(chart_id, index, title, value, percents, color, description)

This function is called when the viewer rolls over the slice. It returns chart_id, the sequential number of the slice (index), the title, value, percent value, color and description.


amSliceOut(chart_id)

This function is called when the viewer rolls away from the slice.


amProcessCompleted(chart_id, process_name)

This function is called when the chart finishes doing some task triggered by another JavaScript function.


Back to top