\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop

A PHP class representing the stop setting of DiagramShapeDefaultsFillGradientStops.

Methods

color

The color in any of the following formats: Format Description
red Basic or Extended CSS Color name
#ff0000 Hex RGB value
rgb(255, 0, 0) RGB valueSpecifying 'none', 'transparent', or '' (empty string) clears the fill.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop

Parameters

$value string

Example

<?php
$stop = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop();
$stop->color('value');
?>

offset

The stop offset from the start of the element. Ranges from 0 (start of gradient) to 1 (end of gradient).

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop

Parameters

$value float

Example

<?php
$stop = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop();
$stop->offset(1);
?>

opacity

The fill opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop

Parameters

$value float

Example

<?php
$stop = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop();
$stop->opacity(1);
?>