ZoomCharts Documentation
PieChart.settings
Properties
View section details
Advanced chart settings. Be advised that they are subject to change, backwards compatibility is not guaranteed.
The URL root where the ZoomCharts library and assets are located. For example, if the base.css file is available at 'http://server/css/zoomcharts/zc.css' then this value should be set to 'http://server/css/zoomcharts/'. Note that the library will try to determine its location automatically by searching the included script tags. So this property can be skipped if the assets folder is located next to 'zoomcharts.js' file on the server.
View section details
Element of the page where the chart will be inserted. Any HTML element should work, for example you can use a <div>
.
Any contents of the element will be cleared - this behavior can be used to specify a loading message as the initial content,
for example <div>Chart is being initialized...</div>
.
Note that a single element can host only one chart. If the same container is given to another chart, the previous chart will be automatically disposed.
Unless parentChart
is specified, the value of the property is mandatory and can only be specified while creating the chart,
not with updateSettings
. The value can be either an ID of an existing element or a reference to a DOM element.
View section details
Settings for displaying chart credits. Use it as a reference to additional data sources if necessery.
Note that even if credits enabled on page load, it's possible to hide on exported images.
View section details
Settings used to load data into chart. Customise preferred data source feeding methods. You can use one of these options: url, data function, preloaded data.
View section details
The events used to handle user interaction with UI elements.
Configurable conditions to filter the raw data values for subset of drawing slices.
Properties
Determines if zero values are automatically filtered from the data or if they will be displayed.
Note that if you want to show the empty values in the piechart, it might be useful to set
interaction.others.minSliceFraction
to 0
or slice.minFraction
to a value larger than 0
.
Function to filter visible slices.
Parameters
slice filtering data
Return value
true to show the slice, false to hide the slice.
Slice icons as an additional element of style to highlight each individual slice or groups.
Properties
Whether to render icons if smaller than min value of sizeExtent.
Icon placement method
Valid values:- auto - maximize icon size
- center - always place in center of slice
Rising content field while hovering over slice. Content returned in a form of html and is relevant to context of slice hovered.
Properties
Prepare custom info popup contents. May return null and call callback(contents) later.
Parameters
slice data including subvalues
slice object to apply predefined content
Return value
Show/hide info popup.
View section details
Configurable interactivity options to navigate among the slices and pie levels to facilitate analysis of the grouped data in different ways.
View section details
Label settings related to internal and external slice text and their connectors.
View section details
The chart legend by additional interactivity to navigate between the slices or hilight each of them. Note that click on entries acts the same way as click on slice and is dependant of chart interaction mode.
View section details
Localizeable strings including export type options and useful default buttons used for chart interaction. Buttons like to navigate back, set the chart on full screen and others.
The parent chart within which the new chart will be rendered. If this property is specified, container
cannot be
specified.
Use area.left
, area.top
, area.width
and area.height
settings to position the subchart within parent chart.
See also
- Example: PieChart within a NetChart
Data values arranged in a circular manner.
Properties
Whether to adapt pie outer radius dynamically to allow enough space for labels.
Pie center margin.
Pie depth - used for raised theme.
End angle of the pie.
Pie inner radius. Inner pies are drawn inside this radius. If the value is less than 1, it is multiplied by current pie radius to get inner radius. Otherwise it represents the inner radius in pixels.
Inner radius is extended to radius * innerRadiusWhenDrilldown when drilled down.
Pie margin.
Pie outer margin.
Pie outer radius. If not specified, the radius is determined automatically.
The speed of the rotation for the pie. Set to 0
to disable rotation and return the pie
to its specified startAngle
.
Whether to show inner pies on chart.
Whether to show inner pies on exported image.
Start angle of the pie.
Dynamically determine pie style from data.
Parameters
pie to apply predefined style
Default pie rendering theme.
Valid values:- flat
- bevel
- can
- rounded
- smoothy
See also
- Example: PieChart themes
Center X coordinate of the pie chart. If the value is 'null' - coordinate is calculated automatically. If the value is >1 - it specifies the exact x value in pixels. If the value is <=1 - it specifies a fraction of chart width.
Center Y coordinate of the pie chart. If the value is 'null' - coordinate is calculated automatically. If the value is >1 - it specifies the exact x value in pixels. If the value is <=1 - it specifies a fraction of chart height.
Represents settings for individual slices within each pie.
Properties
Style to active slices in background (back navigation) pies
Properties
Slice style on background (back navigation) pies.
Properties
Extra property to alternate fill colors on backgrond slices.
Slice margin.
Controls minimal visual size of slice. Use this to make very small sizes visually bigger. The value represents smallest fraction of a full pie a slice will take. The range is between 0 and 1. For example using 0.05, all slices smaller than 5% will be grown up to 5%. Other slices will be made proportionally smaller to accommodate for extra size of small slices.
Style for "Others" slice.
Properties
Circumference decoration of 'others' slice.
Valid values:- null - Default style
- zigzag
Style for the "Previous" slice.
Properties
Circumference decoration of 'previous' slice.
Valid values:- null - Default style
- zigzag
Dynamically determine slice style from data.
Parameters
slice to apply predefined style
slice data including subvalues
Theme to apply. You can either use this to share configuration objects between multiple charts or use one of the predefined themes.
See also
- Documentation: Pre-defined themes
View section details
Adjustable settings to manage default and custom toolbar items, as well as toolbar overall appearance.