\Kendo\Dataviz\UI\StockChartLegendItem
A PHP class representing the item setting of StockChartLegend.
Methods
area
Sets the configuration of the legend items of type area. By default, all series except line and scatter use this legend type.
Returns
\Kendo\Dataviz\UI\StockChartLegendItem
Parameters
$value \Kendo\Dataviz\UI\StockChartLegendItemArea|array
Example - using \Kendo\Dataviz\UI\StockChartLegendItemArea
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$area = new \Kendo\Dataviz\UI\StockChartLegendItemArea();
$background = 'value';
$area->background($background);
$item->area($area);
?>
Example - using array
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$background = 'value';
$item->area(array('background' => $background));
?>
cursor
The cursor style of the legend item.
Returns
\Kendo\Dataviz\UI\StockChartLegendItem
Parameters
$value string
Example
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$item->cursor('value');
?>
highlight
The highlight configuration of the legend item.
Returns
\Kendo\Dataviz\UI\StockChartLegendItem
Parameters
$value \Kendo\Dataviz\UI\StockChartLegendItemHighlight|array
Example - using \Kendo\Dataviz\UI\StockChartLegendItemHighlight
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$highlight = new \Kendo\Dataviz\UI\StockChartLegendItemHighlight();
$visible = true;
$highlight->visible($visible);
$item->highlight($highlight);
?>
Example - using array
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$visible = true;
$item->highlight(array('visible' => $visible));
?>
line
Sets the configuration of the legend items of type line. This is the default legend item type for all line and scatter series.
Returns
\Kendo\Dataviz\UI\StockChartLegendItem
Parameters
$value \Kendo\Dataviz\UI\StockChartLegendItemLine|array
Example - using \Kendo\Dataviz\UI\StockChartLegendItemLine
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$line = new \Kendo\Dataviz\UI\StockChartLegendItemLine();
$color = 'value';
$line->color($color);
$item->line($line);
?>
Example - using array
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$color = 'value';
$item->line(array('color' => $color));
?>
markers
The configuration of the Chart legend item markers.By default, the marker configuration will be the same as the series.markers settings of the displayed series.
Returns
\Kendo\Dataviz\UI\StockChartLegendItem
Parameters
$value \Kendo\Dataviz\UI\StockChartLegendItemMarkers|array
Example - using \Kendo\Dataviz\UI\StockChartLegendItemMarkers
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$markers = new \Kendo\Dataviz\UI\StockChartLegendItemMarkers();
$background = 'value';
$markers->background($background);
$item->markers($markers);
?>
Example - using array
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$background = 'value';
$item->markers(array('background' => $background));
?>
type
Sets the type of the legend items. The default value is based on the series type.The supported values are: "line"—the legend items are rendered as a line. This is the default value for line charts. or "area"—the legend items are rendered as a filled rectangle. This is the default value for area charts..
Returns
\Kendo\Dataviz\UI\StockChartLegendItem
Parameters
$value string
Example
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$item->type('value');
?>
visual
A function that can be used to create a custom visual for the legend items. The available argument fields are: options - the item options. or createVisual - a function that can be used to get the default visual..
Returns
\Kendo\Dataviz\UI\StockChartLegendItem
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$item = new \Kendo\Dataviz\UI\StockChartLegendItem();
$item->visual(new \Kendo\JavaScriptFunction('function() { }'));
?>