\Kendo\Dataviz\UI\DiagramShapeFill

A PHP class representing the fill setting of DiagramShape.

Methods

color

Defines the fill color of the shape.

Returns

\Kendo\Dataviz\UI\DiagramShapeFill

Parameters

$value string

Example

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

gradient

Defines the gradient fill of the shape.

Returns

\Kendo\Dataviz\UI\DiagramShapeFill

Parameters

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

Example - using \Kendo\Dataviz\UI\DiagramShapeFillGradient

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

Example - using array

<?php
$fill = new \Kendo\Dataviz\UI\DiagramShapeFill();
$radius = 1;
$fill->gradient(array('radius' => $radius));
?>

opacity

Defines the fill opacity of the shape.

Returns

\Kendo\Dataviz\UI\DiagramShapeFill

Parameters

$value float

Example

<?php
$fill = new \Kendo\Dataviz\UI\DiagramShapeFill();
$fill->opacity(1);
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy