We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disable default width and size of svg container

Thread ID:





142081 Jan 17,2019 06:17 PM UTC Jan 18,2019 06:44 AM UTC ASP.NET MVC - EJ 2 1
Tags: Chart
Asked On January 17, 2019 06:17 PM UTC

Hi Team,

Could you please advise how to disable default width and height of svg container in Donut chart?
I use a responsive layout view. However, this default width and size overrides my style and the chart breaks when I shrink the page.
Appreciate your help on this.


Dharanidharan Dharmasivam [Syncfusion]
Replied On January 18, 2019 06:44 AM UTC

Hi Jsu, 
Greetings from Syncfusion. 
We have validated the reported scenario, and this can be overcome by specifying the style display as block to the corresponding chart class. We have created sample based on your requirement using bootstrap. Now chart takes width and height properly based on bootstrap styles.  
Code Snippet: 
//set style to accumulation chart class 
    .e-accumulationchart { 
        display: block; 
Hope this helps. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon