--- title: "Rectangle" slug: "rectangle" description: "The Rectangle tool frames and emphasizes chart areas, highlighting key data or patterns. Customize its color, transparency, and style for clarity." updated: 2024-10-31T14:41:46Z published: 2024-10-31T14:41:46Z canonical: "devexperts.com/rectangle" --- > ## Documentation Index > Fetch the complete documentation index at: https://devexperts.com/dxcharts-docs/llms.txt > Use this file to discover all available pages before exploring further. # Rectangle [![](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/v1.webp)](https://devexperts.com/dxcharts/?utm_source=kb&utm_medium=banner&utm_campaign=dxcharts) --- **Rectangle** is a geometrical shape tool that is used to frame and highlight a certain area on the chart. The Rectangle is drawn by two points. To add an Oval to the chart, click its name or the icon![rectangle_icon](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/rectangle_icon.png)on the Drawings Panel. Specify the first point on the chart, move the pointer in required direction to form a rectangle and then click to fix it. **Note:** To cancel drawing, press **ESC** ![Rectangle](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/Rectangle(1).gif)*Rectangle drawing* ### **Actions with the Rectangle** - To edit the size or form of the Rectangle, point to its border line and drag it by one of four points. - To move the Rectangle, point to its border line and simply drag it to where you want it on the chart. **Note:** To open the settings window, double-click the Oval border line ### Rectangle Toolbar![toolbar1(2)](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/toolbar1(2).png) | **Color**. In the **Color** section, you can change the color of the border line of the Rectangle. The slider at the bottom is intended to set transparency of the color. To create a custom color: - click![](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/add_custom_color_icon.png)to open the color picker - by using the slider at the bottom, adjust the main color - on the color picker, set a shade for the main color The custom-created colors are added to your palette. To remove a custom color, drag it out of the palette. | | --- | | **Weight**. In the **Weight** section, you can set the thickness and style for the border line of the Rectangle (currently, only *dashed* style is available). | | **Settings**. A set of parameters that are described in **Rectangle Settings**. | | **Lock**. Locks the drawing position. The figure cannot be moved or edited on the chart. | | **Delete**. Removes the rectangle from the chart. | **Note:** To delete a rectangle, you can also press the **Delete** or **Backspace** button on your keyboard ### Rectangle Settings - **Coordinates**. The coordinates of the upper and lower sides of the Rectangle. You can put them manually by filling out the values for the prices, dates and time. - **Style**. In this section, you can set the border line color, style or the background color of the Rectangle. Clear **Background** checkbox to remove the background of the Rectangle. Close to apply the settings. **Note:** At the bottom-left corner of the window, click **Restore Defaults** to reset the settings