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

Data label format in Range Column Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

142281 Jan 24,2019 07:30 PM UTC Jan 25,2019 06:11 AM UTC ASP.NET MVC - EJ 2 1
loading
Tags: Chart
jsu
Asked On January 24, 2019 07:30 PM UTC

Hi Team,

Please help me to get rid of "high" and "low" data labels in Range Column chart and instead of that I need a single text( for instance only high value or a custom value).



Thanks in advance

Dharanidharan Dharmasivam [Syncfusion]
Replied On January 25, 2019 06:11 AM UTC

Hi Jsu, 
 
Greetings from Syncfusion. 
 
We have analyzed your query. Your requirement can be achieved using the TextRender event. The event will be triggered for each label and here you can customize the text based on your requirement. We have displayed only the high value. Find the code snippet below to achieve this requirement. 
 
 
@Html.EJS().Chart("container").TextRender("textRender") 
      Other configurations 
.Render() 
 
function textRender(args) { 
        if (args.point.low === parseFloat(args.text)) { 
            args.text = " "; 
        } else { 
            args.text += " High"; 
        }  
    } 
 
 
Screenshot: 
 
 
 
Thanks, 
Dharani. 


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

;