Search results

SeriesModel API in Angular Chart API component

Interface for a class Series

Properties

animation

AnimationModel

Options to customizing animation for the series.

bearFillColor

string

This property is used in financial charts to visualize the price movements in stock. It defines the color of the candle/point, when the opening price is less than the closing price.

binInterval

number

The bin interval of each histogram points.

border

BorderModel

Options to customizing the border of the series. This is applicable only for Column and Bar type series.

boxPlotMode

BoxPlotMode

The mode of the box and whisker char series. They are, Exclusive Inclusive Normal

bullFillColor

string

This property is used in financial charts to visualize the price movements in stock. It defines the color of the candle/point, when the opening price is higher than the closing price.

cardinalSplineTension

number

It defines tension of cardinal spline types.

close

string

The DataSource field that contains the close value of y It is applicable for series and technical indicators

colorName

string

The Data Source field that contains the color mapping value. It is applicable for range color mapping properly.

columnFacet

ShapeType

Defines the shape of the data in a column and bar chart. Rectangle: Displays the data in a column and bar chart in a rectangle shape. Cylinder: Displays the data in a column and bar chart in a cylinder shape.

columnSpacing

number

To render the column series points with particular column spacing. It takes value from 0 - 1.

columnWidth

number

Render the column series points with a particular column width. If the series type is histogram the default value is 1 otherwise 0.7.

columnWidthInPixel

number

To render the column series points with particular column width as pixel.

connector

ConnectorModel

Defines the appearance of line connecting adjacent points in waterfall charts.

cornerRadius

CornerRadiusModel

To render the column series points with particular rounded corner.

dashArray

string

Defines the pattern of dashes and gaps to stroke the lines in Line type series.

dataSource

Object | DataManager

Specifies the data source for the series. It can be an array of JSON objects or an instance of DataManager.

<div id='Chart'></div>
let dataManager: DataManager = new DataManager({
        url: 'http://mvc.syncfusion.com/Services/Northwnd.svc/Tasks/'
});
let query: Query = new Query().take(50).where('Estimate', 'greaterThan', 0, false);
let chart: Chart = new Chart({
...
    series: [{
       dataSource: dataManager,
       xName: 'Id',
       yName: 'Estimate',
       query: query
   }],
...
});
chart.appendTo('#Chart');

dragSettings

DragSettingsModel

Options to customize the drag settings for series

drawType

ChartDrawType

Type of series to be drawn in radar or polar series. They are ‘Line’ ‘Column’ ‘Area’ ‘Scatter’ ‘Spline’ ‘StackingColumn’ ‘StackingArea’ ‘RangeColumn’ ‘SplineArea’

emptyPointSettings

EmptyPointSettingsModel

options to customize the empty points in series.

enableComplexProperty

boolean

This property used to improve chart performance via data mapping for series dataSource.

enableSolidCandles

boolean

This property is applicable for candle series. It enables/disables to visually compare the current values with the previous values in stock.

enableTooltip

boolean

Enable tooltip for the chart series.

errorBar

ErrorBarSettingsModel

Options for displaying and customizing error bar for individual point in a series.

fill

string

The fill color for the series, which can accept values in hex or rgba as a valid CSS color string. It also represents the color of the signal lines in technical indicators. For technical indicators, the default value is ‘blue’ and for series, it has null.

groupName

string

Defines the name that specifies the chart series are mutually exclusive and can be overlaid. The axis in the same group shares the same baseline and location on the corresponding axis.

high

string

The DataSource field that contains the high value of y It is applicable for series and technical indicators

intermediateSumIndexes

number[]

Defines the collection of indexes of the intermediate summary columns in waterfall charts.

isClosed

boolean

Specifies whether to join start and end point of a line/area series used in polar/radar chart to form a closed path.

legendImageUrl

string

The URL for the Image that is to be displayed as a Legend icon. It requires legendShape value to be an Image.

legendShape

LegendShape

The shape of the legend. Each series has its own legend shape, which can be one of the following:

  • Circle
  • Rectangle
  • Triangle
  • Diamond
  • Cross
  • HorizontalLine
  • VerticalLine
  • Pentagon
  • InvertedTriangle
  • SeriesType
  • Image

low

string

The DataSource field that contains the low value of y It is applicable for series and technical indicators

marker

MarkerSettingsModel

Options for displaying and customizing markers for individual points in a series.

maxRadius

number

Maximum radius

minRadius

number

Minimum radius

name

string

The name of the series as displayed in the legend.

negativeFillColor

string

Defines the visual representation of the negative changes in waterfall charts.

nonHighlightStyle

string

Custom style for the non-highlighted series or points.

opacity

number

The opacity of the series.

open

string

The DataSource field that contains the open value of y It is applicable for series and technical indicators

paretoOptions

ParetoOptionsModel

Options for customizing the pareto line series.

pointColorMapping

string

The DataSource field that contains the color value of point. It is applicable for series.

query

Query

Specifies a query to select data from the DataSource. This property is applicable only when the DataSource is an ej.DataManager.

segmentAxis

Segment

Defines the axis, based on which the line series will be split.

segments

ChartSegmentModel[]

Defines the collection of regions that helps to differentiate a line series.

selectionStyle

string

Custom style for the selected series or points.

showMean

boolean

If set true, the mean value for box and whisker will be visible.

showNormalDistribution

boolean

The normal distribution of histogram series.

size

string

The DataSource field that contains the size value of y

splineType

SplineType

Defines type of spline to be rendered.

stackingGroup

string

This property allows grouping series in stacked column / bar charts. Any string value can be provided to the stackingGroup property. If any two or above series have the same value, those series will be grouped together.

step

StepPosition

Defines the position for the steps in the step line, step area, and step range area chart types.

  • Left: Steps start from the left side of the 2nd point.
  • Center: Steps start between the data points.
  • Right: Steps start from the right side of the 1st point.

sumIndexes

number[]

Defines the collection of indexes of the overall summary columns in waterfall charts.

summaryFillColor

string

Defines the visual representation of the summaries in waterfall charts.

tooltipFormat

string

Format of the tooltip content.

tooltipMappingName

string

The data source field that contains the tooltip value.

trendlines

TrendlineModel[]

Defines the collection of trendlines that are used to predict the trend

type

ChartSeriesType

The type of the series are

  • Line
  • Column
  • Area
  • Bar
  • Histogram
  • StackingColumn
  • StackingArea
  • StackingBar
  • StepLine
  • StepArea
  • Scatter
  • Spline
  • StackingColumn100
  • StackingBar100
  • StackingArea100
  • RangeColumn
  • Hilo
  • HiloOpenClose
  • Waterfall
  • RangeArea
  • SplineRangeArea
  • Bubble
  • Candle
  • Polar
  • Radar
  • BoxAndWhisker
  • Pareto

unSelectedStyle

string

Custom style for the deselected series or points.

visible

boolean

Specifies the visibility of the series.

volume

string

Defines the data source field that contains the volume value in candle charts It is applicable for financial series and technical indicators

width

number

The stroke width for the series that is applicable only for Line type series. It also represents the stroke width of the signal lines in technical indicators.

xAxisName

string

The name of the horizontal axis associated with the series. It requires axes of the chart. It is applicable for series and technical indicators

<div id='Chart'></div>
let chart: Chart = new Chart({
...
    columns: [{ width: '50%' },
              { width: '50%' }],
    axes: [{
               name: 'xAxis 1',
               columnIndex: 1,
           }],
    series: [{
               dataSource: data,
               xName: 'x', yName: 'y',
               xAxisName: 'xAxis 1',
    }],
});
chart.appendTo('#Chart');

xName

string

The DataSource field that contains the x value. It is applicable for series and technical indicators

yAxisName

string

The name of the vertical axis associated with the series. It requires axes of the chart. It is applicable for series and technical indicators

<div id='Chart'></div>
let chart: Chart = new Chart({
...
    rows: [{ height: '50%' },
           { height: '50%' }],
    axes: [{
               name: 'yAxis 1',
               rowIndex: 1,
           }],
    series: [{
               dataSource: data,
               xName: 'x', yName: 'y',
               yAxisName: 'yAxis 1'
    }],
});
chart.appendTo('#Chart');

yName

string

The DataSource field that contains the y value.

zOrder

number

The z order of the series.