Configures the series in the accumulation chart.
Options to improve accessibility for series elements.
Options for customizing the animation of the series.
By default, animation is enabled with a duration of 1000 milliseconds (about 1 second). It can be disabled by setting enable to false
.
The following properties are supported in animation:
boolean
When set to true, a different pattern is applied to each slice of the pie.
Defaults to false
Options for customizing the border of the series.
number
Option for customizing the border radius.
Defaults to 0
string
Defines the pattern of dashes and gaps for the series border.
Defaults to ‘0’
AccumulationDataLabelSettingsModel
The data label property can be used to show the data label and customize its position and styling.
Object
| DataManager
Specifies the data source for the series. It can be an array of JSON objects, or an instance of DataManager.
<div id='Pie'></div>
let dataManager: DataManager = new DataManager({
url: 'https://services.syncfusion.com/js/production/api/orders'
});
let query: Query = new Query().take(5);
let pie: AccumulationChart = new AccumulationChart({
...
series: [{
dataSource: dataManager,
xName: 'CustomerID',
yName: 'Freight',
query: query
}],
...
});
pie.appendTo('#Pie');
Defaults to ”
Customization options for the appearance of empty points in the series, where null
or undefined
values are considered as empty points.
boolean
Controls whether the tooltip for the accumulation chart series is enabled or disabled. Set to true to display tooltips on hover, or false to hide them.
Defaults to true
number
Specifies the ending angle for the series, in degrees.
Defaults to null
boolean
If set to true, series points will explode on mouse click or touch.
Defaults to false
boolean
If set to true, all the points in the series will explode on load.
Defaults to false
number
Index of the point in the series to be exploded on initial load.
Defaults to null
string
Specifies the distance of the point from the center, which can be defined in both pixels and percentage.
Defaults to ‘30%’
number
Defines the distance between the segments of a funnel or pyramid series. The range is from 0 to 1.
Defaults to 0
In the accumulation series, y-values less than groupMode
are combined into a single slice named ‘others’.
Defaults to Value
string
The y-values of the accumulation series that are less than groupTo
are combined into a single slice named ‘others’.
Defaults to null
string
Defines the height of the funnel or pyramid series relative to the chart area.
Defaults to ‘80%’
string
When the innerRadius
value is greater than 0%, a donut shape will appear in the pie series. It accepts only percentage values.
Defaults to ‘0’
string
The URL for the image to be displayed as a legend icon.
Note that
legendShape
must be set toImage
.
Defaults to ”
Specifies the shape of the legend icon for each data point. Available shapes for legend:
Defaults to ‘SeriesType’
string
The name
property allows for setting a name for the series.
Defaults to ”
string
Defines the height of the funnel neck relative to the chart area.
Defaults to ‘20%’
string
Defines the width of the funnel neck relative to the chart area.
Defaults to ‘20%’
number
Sets the opacity of the series, with a value between 0 and 1 where 0 is fully transparent and 1 is fully opaque.
Defaults to 1.
string[]
The palettes
array defines a set of colors used for rendering the accumulation chart’s points. Each color in the array is applied to each point in order.
Defaults to []
string
The data source field that contains the color value of a point. It is applicable for series.
Defaults to ”
Defines how the values are represented, either through the height or surface area of the segments.
Defaults to ‘Linear’
Query
Specifies a query to select data from the data source. This property is applicable only when the data source is an ej.DataManager
.
Defaults to null
string
Specifies the radius of the pie series as a percentage of the chart’s size.
Defaults to null
string
The selectionStyle
property is used to specify custom CSS styles for the selected series or points.
Defaults to null
number
Specifies the starting angle for the series, in degrees.
Defaults to 0
string
The data source field that contains the value to be displayed in the tooltip.
Defaults to ”
Specifies the type of series in the accumulation chart.
Defaults to ‘Pie’
boolean
If set to true, the series will be visible. If set to false, the series will be hidden.
Defaults to true
string
Defines the width of the funnel or pyramid series relative to the chart area.
Defaults to ‘80%’
string
The data source field that contains the x value.
Defaults to ”
string
The data source field that contains the y value.
Defaults to ”
Adds a data point to the data source for the series.
Parameter | Type | Description |
---|---|---|
dataPoint | Object |
The data point to be added. |
duration (optional) | number |
– The duration for the animation. |
Returns void
Removes a data point from the series data source at the specified index.
Parameter | Type | Description |
---|---|---|
index | number |
– The index of the data point to be removed from the series. |
duration (optional) | number |
– The duration for the animation. |
Returns void
Updates the data source for the series.
Parameter | Type | Description |
---|---|---|
data | Object[] |
– Updated data source for the series. |
duration (optional) | number |
– The duration for the animation. |
Returns void