class anychart.charts.Pareto Improve this Doc
Extends: anychart.core.SeparateChart
Pareto chart class.
Methods Overview
| Specific settings | |
| annotations() | Creates annotations. |
| getType() | Definition of the chart type. |
| Axes and Scales | |
| getXAxesCount() | Returns X-axes count. |
| getXScales() | Returns chart X scales. |
| getYAxesCount() | Returns Y-axes count. |
| getYScales() | Returns chart Y scales. |
| grid() | Grid settings. |
| lineMarker() | Line marker settings. |
| minorGrid() | Minor grid settings. |
| rangeMarker() | Range marker settings. |
| textMarker() | Text marker settings. |
| xAxis() | X-axis settings. |
| xScale() | X-scale settings. |
| yAxis() | Y-axis settings. |
| yScale() | Y-scale settings. |
| Chart Coloring | |
| hatchFillPalette() | Hatch fill palette settings. |
| markerPalette() | Markers palette settings. |
| palette() | Palette settings. |
| Chart Controls | |
| xScroller() | Scroller settings. |
| Coloring | |
| selectMarqueeFill() | Select marquee fill settings. |
| selectMarqueeStroke() | Stroke settings. |
| Data | |
| data() | Data settings. |
| getStat() | Getter for a statistical value by the key. |
| Interactivity | |
| crosshair() | Crosshair settings. |
| startSelectMarquee() | Starts select marquee drawing. |
| xZoom() | Zoom settings. |
| Point Elements | |
| hoverLabels() | Labels settings. |
| labels() | Labels settings. |
| selectLabels() | Labels settings. |
| Size and Position | |
| getPlotBounds() | Returns data bounds of the chart. |
| Specific Series Settings | |
| addSeries() | Adds series to the chart. |
| barGroupsPadding() | Settings for the space between bar groups. |
| barsPadding() | Settings for the space between bars. |
| defaultSeriesType() | Default series type. |
| getSeries() | Returns series by id. |
| getSeriesAt() | Returns series by index. |
| getSeriesCount() | Returns series count. |
| maxBubbleSize() | The maximum size for all bubbles on the charts. |
| minBubbleSize() | The minimum size for all bubbles on the charts. |
| removeAllSeries() | Removes all series from chart. |
| removeSeries() | Removes one of series from chart by its id. |
| removeSeriesAt() | Removes one of series from chart by its index. |
| Miscellaneous | |
| cancelMarquee() | Stops current marquee action if any. |
| inMarquee() | Gets marquee process running value. |
Methods Description
addSeries
Params:
| Name | Type | Description |
|---|---|---|
| var_args | anychart.data.View | anychart.data.Set | Array | Chart series data. |
Returns:
Array.<anychart.core.cartesian.series.Base> - Array of created series.annotations
Returns:
anychart.core.annotations.PlotController - The plot annotations.Params:
| Name | Type | Description |
|---|---|---|
| annotationsList | Array | Annotations list to set. |
Returns:
anychart.charts.Pareto - Self instance for method chainingbarGroupsPadding
Returns:
number - Bar groups padding.Try it:
See illustration at anychart.charts.Cartesian#barsPadding.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | number | 0.8 | Value to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
barsPadding
Returns:
number - Bars padding.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | number | 0.4 | Value to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.cancelMarquee
Returns:
anychart.charts.Pareto - Self instance for method chaining.crosshair
Returns:
anychart.core.ui.Crosshair - Crosshair settings.- null/boolean - disable or enable chart crosshair.
- object - sets chart crosshair settings.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | Object | boolean | null | false | Crosshair settings. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.data
Params:
| Name | Type | Description |
|---|---|---|
| value | anychart.data.View | anychart.data.Set | anychart.data.DataSettings | Array | string | Value to set. |
| csvSettings | anychart.enums.TextParsingMode | anychart.data.TextParsingSettings | If CSV string is passed, you can pass CSV parser settings here as a hash map. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
defaultSeriesType
Returns:
string | anychart.enums.CartesianSeriesType - Default series type.Params:
| Name | Type | Description |
|---|---|---|
| value | string | anychart.enums.CartesianSeriesType | Default series type. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.getPlotBounds
Note: Works only after anychart.charts.Cartesian#draw is called.
Returns:
anychart.math.Rect - Data bounds of the chart.getSeries
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| id | number | string | index | Id of the series. |
Returns:
anychart.core.cartesian.series.Base - An instance of the class for method chaining.Try it:
getSeriesAt
Params:
| Name | Type | Description |
|---|---|---|
| index | number | Index of the series. |
Returns:
anychart.core.cartesian.series.Base - An instance of the class for method chaining.Try it:
getSeriesCount
getStat
Params:
| Name | Type | Description |
|---|---|---|
| key | string | anychart.enums.Statistics | Key. |
Returns:
* - Statistics value.Try it:
getType
getXAxesCount
Returns:
number - Number of X-axes.getXScales
Returns:
Array - An array of all X scales (including axes, grids, and axis markers scales).getYAxesCount
Returns:
number - Number of Y-axes.getYScales
Returns:
Array - An array of all Y scales (including axes, grids, and axis markers scales).Try it:
grid
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart grid index. If don't set - creates a new instance and adds it to the end of array. |
Returns:
anychart.core.grids.Linear - Grid instance by index.Try it:
- null/boolean - disable or enable chart grid.
- object - sets chart grid settings.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | Object | boolean | null | false | Chart grid settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.- null/boolean - disable or enable chart grid by index.
- object - sets chart grid settings by index.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart grid index. |
| value | Object | boolean | null | false | Chart grid settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.hatchFillPalette
Returns:
anychart.palettes.HatchFills - Chart hatch fill palette.var currentHatchFillPalette = chart.hatchFillPalette();
Params:
| Name | Type | Description |
|---|---|---|
| value | Array.<anychart.graphics.vector.HatchFill.HatchFillType> | Object | anychart.palettes.HatchFills | Chart hatch fill palette settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
hoverLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable chart hover labels.
- object - sets chart hover labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Series data labels settings. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.inMarquee
Returns:
boolean - Returns true if there is a marquee process running.labels
- null/boolean - disable or enable chart labels.
- object - sets chart labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Series data labels settings. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.lineMarker
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart line marker index. If don't set - creates a new instance and adds it to the end of array. |
Returns:
anychart.core.axisMarkers.Line - Line marker instance by index.Try it:
- null/boolean - disable or enable chart line marker.
- object - sets chart line marker settings.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | Object | boolean | null | false | Chart line marker settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.- null/boolean - disable or enable chart line marker by index.
- object - sets chart line marker settings by index.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart line marker index. |
| value | Object | boolean | null | Chart line marker settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.markerPalette
Returns:
anychart.palettes.Markers - Chart markers palette.var currentMarkerPalette = chart.markerPalette();
Params:
| Name | Type | Description |
|---|---|---|
| value | anychart.palettes.Markers | Object | Array.<anychart.enums.MarkerType> | Chart marker palette settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
maxBubbleSize
Returns:
number | string - The maximum size all of the bubbles.Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | number | string | "20%" | Maximum size to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.minBubbleSize
Returns:
number | string - The minimum size of the all bubbles.Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | number | string | "5%" | Minimum size to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.minorGrid
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart minor grid index. If don't set - creates a new instance and adds it to the end of array. |
Returns:
anychart.core.grids.Linear - Minor grid instance by index.Try it:
- null/boolean - disable or enable chart minor grid.
- object - sets chart minor grid settings.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | Object | boolean | null | false | Chart minor grid settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.- null/boolean - disable or enable chart minor grid by index.
- object - sets chart minor grid settings by index.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart minor grid index. |
| value | Object | boolean | null | false | Chart minor grid settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.palette
var currentPalette = chart.palette();
Params:
| Name | Type | Description |
|---|---|---|
| value | anychart.palettes.RangeColors | anychart.palettes.DistinctColors | Object | Array.<string> | Series colors palette settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.rangeMarker
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart range marker index. If don't set - creates a new instance and adds it to the end of array. |
Returns:
anychart.core.axisMarkers.Range - Range marker instance by index.Try it:
- null/boolean - disable or enable chart range marker.
- object - sets chart range marker settings.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | Object | boolean | null | false | Chart range marker settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.- null/boolean - disable or enable chart range marker by index.
- object - sets chart range marker settings by index.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart range marker index. |
| value | Object | boolean | null | Chart range marker settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.removeAllSeries
Returns:
anychart.charts.Pareto - Self instance for method chaining.removeSeries
Params:
| Name | Type | Description |
|---|---|---|
| id | number | string | Series id. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.removeSeriesAt
Params:
| Name | Type | Description |
|---|---|---|
| index | number | Series index. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.selectLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable chart select labels.
- object - sets chart hover labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Series data labels settings. |
Returns:
anychart.core.ui.LabelsFactory - Labels instance.selectMarqueeFill
Returns:
anychart.graphics.vector.Fill - Select marquee fill.var selectMarqueeFill = chart.selectMarqueeFill();
Params:
| Name | Type | Description |
|---|---|---|
| value | anychart.graphics.vector.Fill | Color as an object or a string. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| color | string | Color as a string. |
| opacity | number | Color opacity. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Gradient keys. |
| angle | number | Gradient angle. |
| mode | boolean | anychart.graphics.vector.Rect | Object | Gradient mode. |
| opacity | number | Gradient opacity. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Color-stop gradient keys. |
| cx | number | X ratio of center radial gradient. |
| cy | number | Y ratio of center radial gradient. |
| mode | anychart.graphics.math.Rect | If defined then userSpaceOnUse mode, else objectBoundingBox. |
| opacity | number | Opacity of the gradient. |
| fx | number | X ratio of focal point. |
| fy | number | Y ratio of focal point. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
selectMarqueeStroke
Returns:
anychart.graphics.vector.Stroke - Select marquee stroke.var selectMarqueeStroke = chart.selectMarqueeStroke();
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | Stroke settings. | |
| thickness | number | 1 | Line thickness. |
| dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
| lineJoin | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
| lineCap | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
startSelectMarquee
Params:
| Name | Type | Description |
|---|---|---|
| repeat | boolean | Whether to start select marquee drawing. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
textMarker
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart text marker index. If don't set - creates a new instance and adds it to the end of array. |
Returns:
anychart.core.axisMarkers.Text - Text marker instance by index.Try it:
- null/boolean - disable or enable chart text marker.
- object - sets chart text marker settings.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | Object | boolean | null | false | Chart text marker settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.- null/boolean - disable or enable chart text marker by index.
- object - sets chart text marker settings by index.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart text marker index. |
| value | Object | boolean | null | Chart text marker settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.xAxis
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart axis index. If don't set - creates a new instance and adds it to the end of array. |
Returns:
anychart.core.axes.Linear - Axis instance by index.Try it:
- null/boolean - disable or enable chart X-axis.
- object - sets chart X-axis settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Chart axis settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.- null/boolean - disable or enable chart X-axis by index.
- object - sets chart X-axis settings by index.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart axis index. |
| value | Object | boolean | null | Chart axis settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.xScale
Params:
| Name | Type | Description |
|---|---|---|
| value | anychart.enums.ScaleTypes | anychart.scales.Base | X-scale to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
xScroller
Returns:
anychart.core.ui.ChartScroller - Scroller settings.- null/boolean - disable or enable chart scroller.
- object - sets chart scroller settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Chart scroller settings. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.xZoom
Returns:
anychart.core.utils.OrdinalZoom - Zoom settings.Params:
| Name | Type | Description |
|---|---|---|
| value | number | boolean | null | Object | Value to set. If you will pass null, true, false or number less than 1, then value will be converted in 1. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.yAxis
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart axis index. If don't set - creates a new instance and adds it to the end of array. |
Returns:
anychart.core.axes.Linear - Axis instance by index.Try it:
Sets chart Y-axis settings depending on parameter type:
- null/boolean - disable or enable chart Y-axis.
- object - sets chart Y-axis settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Chart axis settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.- null/boolean - disable or enable chart Y-axis by index.
- object - sets chart Y-axis settings by index.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| index | number | 0 | Chart axis index. |
| value | Object | boolean | null | Chart axis settings to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.yScale
Returns:
anychart.scales.Base - Default chart scale value.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| value | anychart.enums.ScaleTypes | anychart.scales.Base | Y-scale to set. |
Returns:
anychart.charts.Pareto - Self instance for method chaining.Try it:
