ZoomCharts Documentation
Switch to Version 2.0 (BETA)
Object structure
The facet chart consists of Facet objects and Item objects. A stack of fact objects is maintained and only topmost item is usually being rendered.. Each facet contains array of items, each individual item represents a single entry in the chart.
The following read-only fields are available. All other fields in the objects are considered internal and subject to change. Each object also has a collection of style fields you can assign to, described in the style section.
Facet fields
id
- facet iddata[]
- pie data as received from data sourceitems
- array of currently visible itemsparentItem
- item in facet up in stack that was drilled down intoactiveItemId
- drilled down item id - for background facets onlyoffset
- offset in data for visible itemscount
- number of visible items
Item fields
id
- item idfacet
- owner facet objectinnerFacet
- drilled down facet object - if the item item is expandedindex
- index in the data arraydata
- item data as received from data sourcevalues[]
- array of ItemValue objects representing individual values. Each array item corresponds to item insettings.series
array.expandable
- if clicking on the item will expand it, true or falseselected
- if is selected, true or falseactive
- if is under the cursor, true or false
ItemValue fields
value
- actual value derived form data
Api methods
The following chart API methods return chart objects:
chart.getActiveFacets()
- returns array of facet objects representing stack of all drilled down facets. Last being the topmost.chart.getActiveFacet()
- returns active facet.chart.getActiveItems()
- returns array of currently visible items for active facet.