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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

hide upper border in the chart

Thread ID:

Created:

Updated:

Platform:

Replies:

140741 Nov 5,2018 11:00 AM UTC Nov 7,2018 04:15 AM UTC WinForms 3
loading
Tags: Chart
Davide Azzaroni
Asked On November 5, 2018 11:00 AM UTC

hi,

I'd like to know if it is possible to hide the upper border , we dont like it because it overrides the top of the bars.
At the same time we dont want to put the maxim value to 120 (we dont want to let the user see "120%" as last value of Y)
 here a pic :




is it possible to hide only the top one of the border?
If not , as workaround is it possible to hide the last Y value(120 ) ? 
thank you

Davide


Sanjith Kesavan [Syncfusion]
Replied On November 6, 2018 09:14 AM UTC

  
Hi Davide, 

Thanks for contacting Syncfusion support. We have analyzed your queries. To achieve your requirements, you can use the stacking column 100 series type. This will render y-axis labels up to 100. And use the below code to remove the upper border from the chart.  

[C#] 
chart.ChartAreaMargins = new ChartMargins(1, -1, 1, 1); 

In the above code, we have set ChartAreaMargins as (1, -1, 1, 1). This will set top value for chart’s margin as -1. And so top margin won’t render. Please find the output below. 
 

In the below link, we have attached sample for your reference.  
Sample link: chart-sample 

Please let us know if you have any concern. 

Thanks, 
Sanjith. 


Davide Azzaroni
Replied On November 6, 2018 10:18 AM UTC

thank you
it worked.

Davide


Sanjith Kesavan [Syncfusion]
Replied On November 7, 2018 04:15 AM UTC

Hi Davide,

We are glad to hear that the provided solution is worked. Please let us know if you any queries on the chart.

Thanks,
Sanjith.


CONFIRMATION

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

or the page will be automatically redirected to 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

;