\Kendo\Dataviz\UI\ChartLegendItemMarkers
A PHP class representing the markers setting of ChartLegendItem.
Methods
background
The background color of the legend item markers.
Returns
\Kendo\Dataviz\UI\ChartLegendItemMarkers
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->background('value');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->background(new \Kendo\JavaScriptFunction('function() { }'));
?>
border
The border of the markers.
Returns
\Kendo\Dataviz\UI\ChartLegendItemMarkers
Parameters
$value \Kendo\JavaScriptFunction|\Kendo\Dataviz\UI\ChartLegendItemMarkersBorder|array
Example - using \Kendo\JavaScriptFunction
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->border(new \Kendo\JavaScriptFunction('function() { }'));
?>
Example - using \Kendo\Dataviz\UI\ChartLegendItemMarkersBorder
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$border = new \Kendo\Dataviz\UI\ChartLegendItemMarkersBorder();
$color = 'value';
$border->color($color);
$markers->border($border);
?>
Example - using array
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$color = 'value';
$markers->border(array('color' => $color));
?>
borderRadius
The border radius in pixels when type is set to "roundedRect".
Returns
\Kendo\Dataviz\UI\ChartLegendItemMarkers
Parameters
$value float
Example
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->borderRadius(1);
?>
type
The markers shape.The supported values are: * "circle" - the marker shape is circle. * "square" - the marker shape is square. * "triangle" - the marker shape is triangle. * "cross" - the marker shape is cross. * "rect" - alias for "square". * "roundedRect" - the marker shape is a rounded rectangle.
Returns
\Kendo\Dataviz\UI\ChartLegendItemMarkers
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->type('value');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->type(new \Kendo\JavaScriptFunction('function() { }'));
?>
visible
If set to true the chart will display the legend item markers. Defaults to the series options.
Returns
\Kendo\Dataviz\UI\ChartLegendItemMarkers
Parameters
$value boolean|\Kendo\JavaScriptFunction
Example - using boolean
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->visible(true);
?>
Example - using \Kendo\JavaScriptFunction
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->visible(new \Kendo\JavaScriptFunction('function() { }'));
?>
visual
A function that can be used to create a custom visual for the markers. The available argument fields are: rect - the kendo.geometry.Rect that defines where the visual should be rendered.; options - the marker options.; createVisual - a function that can be used to get the default visual.; category - the category of the marker point.; dataItem - the dataItem of the marker point.; value - the value of the marker point.; sender - the chart instance. or series - the series of the marker point..
Returns
\Kendo\Dataviz\UI\ChartLegendItemMarkers
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$markers = new \Kendo\Dataviz\UI\ChartLegendItemMarkers();
$markers->visual(new \Kendo\JavaScriptFunction('function() { }'));
?>