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

Column chart - Yaxis labels

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.

3 Replies

BP Baby Palanidurai Syncfusion Team 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. 



JS jsu 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.




BP Baby Palanidurai Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon