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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column chart - Yaxis labels

Thread ID:

Created:

Updated:

Platform:

Replies:

144303 Apr 29,2019 11:51 PM UTC May 1,2019 07:37 AM UTC ASP.NET MVC - EJ 2 3
loading
Tags: Chart
jsu
Asked On April 29, 2019 11:51 PM UTC

Hi Team,

Can you please help me to set Yaxis labels in column chart.
I have a column chart with multiple series.


Thanks in advance.

Baby Palanidurai [Syncfusion]
Replied On April 30, 2019 12:00 PM UTC

Hi Jsu, 

Greetings from Syncfusion. 

We have analyzed your query. We suspect that, you like to format the y Axis labels for the column series.  

For more information about axis labels format, kindly find the below documentation link, 

And also, we can customize the axis label styles, kindly find the below documentation link, 

We are also having axisLabelRender event to customize a particular label, kindly find the documentation link, 

Still we are not aware of your exact scenario. If the above is doesn’t meet your requirement, kindly revert with clear details about the requirement which will be helpful in furthermore analysis and provide you the solution sooner. 

Regards, 
Baby. 


jsu
Replied On April 30, 2019 06:46 PM UTC

Hi Team,

Basically I want to display the same as in below screenshot(this is from your website).
You can see Y axis labels in the screenshot and I want to achieve the same.



Baby Palanidurai [Syncfusion]
Replied On May 1, 2019 07:37 AM UTC

Hi Jsu, 

We have analyzed your query. Based on your screenshot, we have prepared a multiple column series.  

Code snippet: 

CsHtml: 
 
@Html.EJS().Chart("container").Series(series => 
{ 
 
    series.Type(Syncfusion.EJ2.Charts.ChartSeriesType.Column) 
    .XName("xValue").YName("yValue1").DataSource(ViewBag.dataSource).Add(); 
    series.Type(Syncfusion.EJ2.Charts.ChartSeriesType.Column) 
    .XName("xValue").YName("yValue2").DataSource(ViewBag.dataSource).Add(); 
}).PrimaryXAxis(px => px.Interval(1) 
       .ValueType(Syncfusion.EJ2.Charts.ValueType.Category)).Render() 
 
Controller: 
 
List<ChartData> dataSource = new List<ChartData> 
            { 
                new ChartData { xValue= "GER", yValue1= 480, yValue2 = 80 }, 
                new ChartData { xValue= "RUS", yValue1= 300, yValue2 = 200 }, 
                new ChartData { xValue= "BRZ", yValue1= 450, yValue2 = 150 }, 
                new ChartData { xValue= "IND", yValue1= 460, yValue2 = 60 }, 
                new ChartData { xValue= "CHN", yValue1= 720, yValue2 = 260 }, 
}; 
ViewBag.dataSource = dataSource;     

Screenshot: 
 

Please find the below sample link for your reference, 

Still we are not aware of your exact scenario. Did you mean y axis labels customization?. If the above is doesn’t meet your requirement, kindly revert with clear details about the requirement which will be helpful in furthermore analysis and provide you the solution sooner. 

Baby. 


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

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