\Kendo\Dataviz\UI\DiagramShapeFillGradient

A PHP class representing the gradient setting of DiagramShapeFill.

Methods

center

The center of the radial gradient.Coordinates are relative to the shape bounding box. For example, [0, 0] is top left and [1, 1] is bottom right.

Returns

\Kendo\Dataviz\UI\DiagramShapeFillGradient

Parameters

$value array

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeFillGradient();
$gradient->center(array());
?>

end

The end point of the linear gradient.Coordinates are relative to the shape bounding box. For example, [0, 0] is top left and [1, 1] is bottom right.

Returns

\Kendo\Dataviz\UI\DiagramShapeFillGradient

Parameters

$value array

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeFillGradient();
$gradient->end(array());
?>

radius

The radius of the radial gradient relative to the shape bounding box.

Returns

\Kendo\Dataviz\UI\DiagramShapeFillGradient

Parameters

$value float

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeFillGradient();
$gradient->radius(1);
?>

start

The start point of the linear gradient.Coordinates are relative to the shape bounding box. For example, [0, 0] is top left and [1, 1] is bottom right.

Returns

\Kendo\Dataviz\UI\DiagramShapeFillGradient

Parameters

$value array

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeFillGradient();
$gradient->start(array());
?>

addStop

Adds one or more DiagramShapeFillGradientStop to the DiagramShapeFillGradient.

Returns

\Kendo\Dataviz\UI\DiagramShapeFillGradient

Parameters

$value[, $value2, ...] \Kendo\Dataviz\UI\DiagramShapeFillGradientStop|array

Example - using \Kendo\Dataviz\UI\DiagramShapeFillGradientStop

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeFillGradient();
$stop = new \Kendo\Dataviz\UI\DiagramShapeFillGradientStop();
$color = 'value';
$stop->color($color);
$gradient->addStop($stop);
?>

Example - using array

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeFillGradient();
$color = 'value';
$gradient->addStop(array('color' => $color));
?>

Example - adding more than one DiagramShapeFillGradientStop

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeFillGradient();
$first  = new \Kendo\Dataviz\UI\DiagramShapeFillGradientStop();
$second = new \Kendo\Dataviz\UI\DiagramShapeFillGradientStop();
$gradient->addStop($first, $second);
?>

type

The type of the gradient. The supported values are: linear or radial.

Returns

\Kendo\Dataviz\UI\DiagramShapeFillGradient

Parameters

$value string

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeFillGradient();
$gradient->type('value');
?>
In this article
Not finding the help you need?