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
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Data label disappear when value reach maximum value

Thread ID:

Created:

Updated:

Platform:

Replies:

146710 Aug 15,2019 07:17 AM UTC Aug 19,2019 08:40 AM UTC jQuery 1
loading
Tags: ejChart
Sutthipong
Asked On August 15, 2019 07:17 AM UTC

This is my chart axis configuration 
primaryYAxis: {
                range : { max: 100 }
            }

and this is series configuration
{
                name: 'Avg',
                points: [],
                type: 'line',
                fill: 'black',
                marker: {
                    dataLabel: {
                        //Set text alignment to datalabel text
                        visible: true,
                        horizontalTextAlignment: "center",
                        font: {
                            size: seriesFontSize,
                            fontWeight: 'bold',
                            color: 'black'
                        }
                    },
                    font: {
                        fontWeight:'bold'
                    },
                    border: {
                        width: 0
                    },
                    visible: true
                },
                tooltip:
                {
                    visible: true
                }
            }

When data is near 100 datalabel of that point disappear from chart. Is there a way to increase top area space for display datalabel.

PS. My requirement not allow me to increase maximum range beyond 100

Kalaimathi Chellaiah [Syncfusion]
Replied On August 19, 2019 08:40 AM UTC

Hi Sutthipong, 
 
Greetings from Syncfusion. 
 
We have analyzed your query. We can show the hidden datalabel values by using  showEdgeLabels property of the data label.  By setting showEdgeLabels property value as true we can achieve your requirement. We have prepared a simple sample based on your scenario. Please find below, 
 
Code Snippet: 
marker: { 
                    dataLabel: { 
                        visible: true, 
                        horizontalTextAlignment: "center", 
                       //To show hidden datalabel text 
                       showEdgeLabels: true, 
                        font: { 
                             
                            fontWeight: 'bold', 
                            color: 'red' 
                        } 
                    }, 
                    visible: true 
                }, 
 
Screenshot: 
 
 
 
Also we would like to let you know that,  by using offset property of the datalabel we can align the label vertically. Please refer below UG link which explains more information about datalabel, 


Kindly revert us, if you need further assistance. 

Regards, 
Kalai. 
 


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