stroke Object

Defines the stroke configuration.

Example - setting the Circle stroke options

<div id="diagram"></div>
<script>
  var diagram = kendo.dataviz.diagram;
  function getVisual(data) {
    var g = new diagram.Group({
      autoSize: true
    });
    var r = new diagram.Circle({
      center: {x: 40, y: 40},
      radius: 40,
      fill: {
        color: "#add8e6"
      },
      stroke: {
        color: "#800080",
        width: 2
      }
    });
    g.append(r);

    return g;
  };

  $("#diagram").kendoDiagram({
    layout: "tree",
    shapes: [{
      id: "1",
      content: {
        text: "Monday"
      },
      visual: getVisual
    }]
  });
</script>

stroke.color String

Defines the stroke color of the circle.

stroke.width Number

Defines the stroke width of the circle.

In this article
Not finding the help you need? Improve this article