Interface for a class AccumulationSeries
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.
Options for customizing the border of the series.
number
Option for customizing the border radius.
string
Defines the pattern of dashes and gaps for the series border.
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');
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.
number
Specifies the ending angle for the series, in degrees.
boolean
If set to true, series points will explode on mouse click or touch.
boolean
If set to true, all the points in the series will explode on load.
number
Index of the point in the series to be exploded on initial load.
string
Specifies the distance of the point from the center, which can be defined in both pixels and percentage.
Defines the rendering mode for the funnel chart. Available options are:
number
Defines the distance between the segments of a funnel or pyramid series. The range is from 0 to 1.
In the accumulation series, y-values less than groupMode
are combined into a single slice named ‘others’.
string
The y-values of the accumulation series that are less than groupTo
are combined into a single slice named ‘others’.
string
Defines the height of the funnel or pyramid series relative to the chart area.
string
When the innerRadius
value is greater than 0%, a donut shape will appear in the pie series. It accepts only percentage values.
string
The URL for the image to be displayed as a legend icon.
Note that
legendShape
must be set toImage
.
Specifies the shape of the legend icon for each data point. Available shapes for legend:
string
The name
property allows for setting a name for the series.
string
Defines the height of the funnel neck relative to the chart area.
string
Defines the width of the funnel neck relative to the chart area.
number
Sets the opacity of the series, with a value between 0 and 1 where 0 is fully transparent and 1 is fully opaque.
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.
string
The data source field that contains the color value of a point. It is applicable for series.
Defines how the values are represented, either through the height or surface area of the segments.
Query
Specifies a query to select data from the data source. This property is applicable only when the data source is an ej.DataManager
.
string
Specifies the radius of the pie series as a percentage of the chart’s size.
string
The selectionStyle
property is used to specify custom CSS styles for the selected series or points.
number
Specifies the starting angle for the series, in degrees.
string
The data source field that contains the value to be displayed in the tooltip.
Specifies the type of series in the accumulation chart.
boolean
If set to true, the series will be visible. If set to false, the series will be hidden.
string
Defines the width of the funnel or pyramid series relative to the chart area.
string
The data source field that contains the x value.
string
The data source field that contains the y value.
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