\Kendo\Dataviz\UI\ChartSeriesDefaults

A PHP class representing the seriesDefaults setting of Chart.

Methods

area

The area chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

bar

The bar chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

border

The border of the series.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value \Kendo\Dataviz\UI\ChartSeriesDefaultsBorder|array

Example - using \Kendo\Dataviz\UI\ChartSeriesDefaultsBorder

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$border = new \Kendo\Dataviz\UI\ChartSeriesDefaultsBorder();
$color = 'value';
$border->color($color);
$seriesDefaults->border($border);
?>

Example - using array

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$color = 'value';
$seriesDefaults->border(array('color' => $color));
?>

bubble

The bubble chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

candlestick

The candlestick chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

column

The column chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

donut

The donut chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

gap

The distance between category clusters.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value float

Example

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$seriesDefaults->gap(1);
?>

labels

The chart series label configuration.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value \Kendo\Dataviz\UI\ChartSeriesDefaultsLabels|array

Example - using \Kendo\Dataviz\UI\ChartSeriesDefaultsLabels

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$labels = new \Kendo\Dataviz\UI\ChartSeriesDefaultsLabels();
$background = 'value';
$labels->background($background);
$seriesDefaults->labels($labels);
?>

Example - using array

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$background = 'value';
$seriesDefaults->labels(array('background' => $background));
?>

legendItem

The configuration of the Chart legend item for this series.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value \Kendo\Dataviz\UI\ChartSeriesDefaultsLegendItem|array

Example - using \Kendo\Dataviz\UI\ChartSeriesDefaultsLegendItem

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$legendItem = new \Kendo\Dataviz\UI\ChartSeriesDefaultsLegendItem();
$cursor = 'value';
$legendItem->cursor($cursor);
$seriesDefaults->legendItem($legendItem);
?>

Example - using array

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$cursor = 'value';
$seriesDefaults->legendItem(array('cursor' => $cursor));
?>

line

The line chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

notes

The seriesDefaults notes configuration.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value \Kendo\Dataviz\UI\ChartSeriesDefaultsNotes|array

Example - using \Kendo\Dataviz\UI\ChartSeriesDefaultsNotes

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$notes = new \Kendo\Dataviz\UI\ChartSeriesDefaultsNotes();
$visual = new \Kendo\JavaScriptFunction('function() { }');
$notes->visual($visual);
$seriesDefaults-<blockquote class='note'><p>s($notes);</p></blockquote>
?>

Example - using array

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$visual = new \Kendo\JavaScriptFunction('function() { }');
$seriesDefaults-<blockquote class='note'><p>s(array('visual' =&gt; $visual));</p></blockquote>
?>

ohlc

The ohlc chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

overlay

The chart series overlay options.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value \Kendo\Dataviz\UI\ChartSeriesDefaultsOverlay|array

Example - using \Kendo\Dataviz\UI\ChartSeriesDefaultsOverlay

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$overlay = new \Kendo\Dataviz\UI\ChartSeriesDefaultsOverlay();
$gradient = 'value';
$overlay->gradient($gradient);
$seriesDefaults->overlay($overlay);
?>

Example - using array

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$gradient = 'value';
$seriesDefaults->overlay(array('gradient' => $gradient));
?>

pie

The pie chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

rangeArea

The range area chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

scatter

The scatter chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

scatterLine

The scatterLine chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

spacing

The space between the chart series as proportion of the series width.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value float

Example

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$seriesDefaults->spacing(1);
?>

stack

A boolean value indicating if the series should be stacked.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value boolean|\Kendo\Dataviz\UI\ChartSeriesDefaultsStack|array

Example - using boolean

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$seriesDefaults->stack(true);
?>

Example - using \Kendo\Dataviz\UI\ChartSeriesDefaultsStack

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$stack = new \Kendo\Dataviz\UI\ChartSeriesDefaultsStack();
$type = 'value';
$stack->type($type);
$seriesDefaults->stack($stack);
?>

Example - using array

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$type = 'value';
$seriesDefaults->stack(array('type' => $type));
?>

startAngle

The start angle (degrees) of the first donut or pie segment.Angles increase clockwise and zero is to the left. Negative values are acceptable.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value float

Example

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$seriesDefaults->startAngle(1);
?>

tooltip

The chart series tooltip configuration options.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value \Kendo\Dataviz\UI\ChartSeriesDefaultsTooltip|array

Example - using \Kendo\Dataviz\UI\ChartSeriesDefaultsTooltip

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$tooltip = new \Kendo\Dataviz\UI\ChartSeriesDefaultsTooltip();
$background = 'value';
$tooltip->background($background);
$seriesDefaults->tooltip($tooltip);
?>

Example - using array

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$background = 'value';
$seriesDefaults->tooltip(array('background' => $background));
?>

type

The default type of the series.The supported values are: area; bar; bubble; bullet; candlestick; column; donut; funnel; pyramid; line; ohlc; pie; polarArea; polarLine; polarScatter; radarArea; radarColumn; radarLine; rangeArea; rangeBar; rangeColumn; scatter; scatterLine; waterfall; verticalArea; verticalBullet; verticalLine or verticalRangeArea.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value string

Example

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$seriesDefaults->type('value');
?>

verticalArea

The verticalArea chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

verticalLine

The verticalLine chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

verticalRangeArea

The verticalRangeArea chart series options. Accepts all values supported by the series option.

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value ``

visual

A function that can be used to create a custom visual for the points. Applicable for bar, column, pie, donut, funnel, pyramid, line, scatterLine, rangeBar, rangeColumn and waterfall series. The available argument fields are: rect - the kendo.geometry.Rect that defines where the visual should be rendered.; options - the point options.; createVisual - a function that can be used to get the default visual.; category - the point category.; dataItem - the point dataItem.; value - the point value.; stackValue - the cumulative point value on the stack. Available only for stackable series.; sender - the chart instance.; series - the point series.; percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.; runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series.; total - the sum of all previous series values. Available for waterfall series.; radius - the segment radius. Available for donut and pie series.; innerRadius - the segment inner radius. Available for donut series.; startAngle - the segment start angle. Available for donut and pie series.; endAngle - the segment end angle. Available for donut and pie series.; center - the segment center point. Available for donut and pie series. or points - the segment points. Available for funnel, pyramid, line and scatterLine series..

Returns

\Kendo\Dataviz\UI\ChartSeriesDefaults

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$seriesDefaults->visual(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?