# Adjust the Path Origin of the Diagram

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Progress® Kendo UI® Diagram for jQuery</td>
 </tr>
 <tr>
  <td>Operating System</td>
  <td>Windows 10 64bit</td>
 </tr>
 <tr>
  <td>Visual Studio Version</td>
  <td>Visual Studio 2017</td>
 </tr>
 <tr>
  <td>Preferred Language</td>
  <td>JavaScript</td>
 </tr>
</table>

## Description

How can I adjust the position of any path at the origin of the Kendo UI for jQuery Diagram?

## Solution

The following example demonstrates how to position any path at the origin of the Diagram.

```dojo

    <div id="diagram"></div>

    <script>
      var diagram = $("#diagram").kendoDiagram({}).getKendoDiagram();

      diagram.addShape({
        visual: function() {
          var group = new kendo.dataviz.diagram.Group();
          var path = new kendo.dataviz.diagram.Path({
            data: "M100,100 L 200,200 100,300 z"
          });
          group.append(path);

          var bbox = group.drawingElement.bbox();

          if (bbox.origin.x !== 0 || bbox.origin.y !== 0) {
            group.position(-bbox.origin.x, -bbox.origin.y);
          }
          return group;
        }
      });
    </script>

```

## See Also

* [Basic Usage of the jQuery Diagram (Demo)](https://demos.telerik.com/kendo-ui/diagram/index)
* [JavaScript API Reference of the Diagram](https://www.telerik.com/kendo-jquery-ui/documentation/api/dataviz/ui/diagram)
* [Implement Local Data Diagram Editing](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/local-data-editing)
* [Render External Content in Diagram Shapes](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/external-content-in-shapes)
* [Wrap Diagram Text](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/text-wrapping)
