Articles in this section

How to Set Margin Between the Symbol and Text in Angular Diagram?

In this article, you can learn about how to set the margin between the symbol and text in an Angular diagram. The Syncfusion® Angular Diagram Symbol Palette provides an option to display a description for symbols. You can customize the spacing between the symbol and its description using the margin property in the getSymbolInfo function.

Below is a code example showing how to add a margin between the symbol and its description:

public getSymbolInfo(symbol: NodeModel): SymbolInfo {
   // display text for palette item
   return {
     description: {
       text: symbol.annotations[0].content,
       margin : {top : 40, left : 0, right : 0, bottom :20},
     }
   };
 } 

Sample: Click Here

Conclusion

We hope you enjoyed learning how to set the margin between the symbol and text in Angular Diagram.

You can refer to our Angular Diagram feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Diagram example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied