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.

GraphDataItem

GraphDataItem holds all the information about the graph's data item. When working with a chart, you do not create GraphDataItem objects or change it's properties directly. GraphDataItem is passed to you by events when user interacts with data item on the chart. The list of properties below will help you to extract data item's value/coordinate/etc.

Properties

PropertyTypeDefaultDescription
alphaNumberOpacity of the data item.
bulletStringBullet type.
bulletSizeNumberBullet size.
categoryStringCategory value.
colorStringColor of the data item.
customBulletStringCustom bullet (path to file name).
dataContextObjectOriginal object from data provider.
descriptionStringDescription.
fillColorsArrayArray of colors of the data item, used by column and candlestick chart only.
percentsObjectObject which holds percents when recalculateToPercents is set to true.
serialDataItemSerialDataItemSerialDataItem of this graphDataItem
urlStringurl
valuesObjectObject which holds values of the data item (value, open, close, low, high).
xNumberx coordinate of the data item.
yNumbery coordinate of the data item.

Methods

GraphDataItem class does not have any methods.

Events

GraphDataItem class does not have any events.