Ask Your Question

How can the title be repositioned and the center label be written in a donut chart created with Syncfusion Chart in ASP.NET Core?

asked 2022-09-20 11:00:00 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-06-12 09:00:00 +0000

lakamha gravatar image

To reposition the title of a donut chart created with Syncfusion Chart in ASP.NET Core and write the center label, you can use the following code:

<ej-chart id="donutChart" width="600">
    <e-title text="Donut Chart" alignment="center" position="top"></e-title>
    <e-series-points tooltip="false">
        <e-marker visible="false"></e-marker>
        <e-data-labels visible="true" connector-type="line" position="outside" margin="3" />
        <e-center-label text="45%" font-size="20" font-weight="bold" />

To reposition the title, you can use the alignment and position properties of the e-title element. The alignment property specifies the horizontal alignment of the title (e.g. "center", "left", "right"), while the position property specifies the vertical position of the title (e.g. "top", "bottom", "center").

To write the center label, you can use the e-center-region and e-center-label elements. The e-center-label element specifies the text of the label, as well as its text properties such as font size and font weight.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2022-09-20 11:00:00 +0000

Seen: 17 times

Last updated: Jun 12 '22