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
close icon

Data label format in Range Column Chart

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

1 Reply

DD Dharanidharan Dharmasivam Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon