- Home
- Forum
- Angular - EJ 2
- Data Label Overlapping
Data Label Overlapping
Plz Check the attach image of chart, we are facing problem , first label is overlapping with second data label in angular chart component
Attachment: SyncChart_457e0892.zip
Attachment: SyncChart_457e0892.zip
SIGN IN To post a reply.
6 Replies
1 reply marked as answer
SM
Srihari Muthukaruppan
Syncfusion Team
August 26, 2020 03:21 PM UTC
Hi Deepak,
Sorry for the inconvenience.
We have analysed your query. From that we would like to let you know that the datalabel is working fine. Unfortunately, we are unable to reproduce the reported scenario. We have also attached the sample for your reference. Please find the sample and screenshot below.
Screenshot:
if you still face this issue - kindly revert us with the following information which will be more helpful for further analysis and provide you the solution sooner.
- Try to reproduce the reported scenario in the above sample
- Share the details if you have done any other customization in your sample.
Regards,
Srihari M
DJ
Deepak Jain
September 1, 2020 03:11 AM UTC
Hello Team,
When we create two charts in the same row, and one is having 3 series and 8 characters in the data label then this case is generated.
Data Label should be at the bottom side of the series.
SM
Srihari Muthukaruppan
Syncfusion Team
September 1, 2020 01:21 PM UTC
Hi Deepak,
Sorry for the inconvenience.
We have analysed your query. From that, we would like to let you know that the datalabel is rendering fine with no overlapping issue. We have also tried to reproduce the reported scenario by providing multiple series in the same row. Unfortunately, we are unable to reproduce the reported scenario. We have also attached the sample for your reference. Please find the sample and screenshot below.
Screenshot:
if you still face this issue - kindly revert us with the following information which will be more helpful for further analysis and provide you the solution sooner.
- Try to reproduce the reported scenario in the above sample
- Share the details if you have done any other customization in your sample.
Regards,
Srihari M
DJ
Deepak Jain
September 1, 2020 02:04 PM UTC
Hello Shrihari,
Thank for your reply. Let me verify my code with your sample provided. If anything required will update you
DJ
Deepak Jain
September 2, 2020 07:44 AM UTC
Hello SriHari,
Please check above code. Why we need to add margin @line number: 29, to get the desired chart with proper margins.
SM
Srihari Muthukaruppan
Syncfusion Team
September 3, 2020 01:57 PM UTC
Hi Deepak,
We have analysed your query. Based on your requirement, we would like to let you know that instead of providing margin property to change the alignment of datalabels in the chart, we suggest you to set the alignment property for the dataLabel to customize the placement of dataLabel. And by default, the datalabel position is set as top and alignment is set to Near, so that it will display the datalabel at top of the series, but inside the column. Hence we suggest you to set the alignment as “Far” to achieve your requirement. Please find the sample, code snippet and screenshot below.
Code Snippet:
|
// add your additional code here
public marker: Object = {
dataLabel: {
enableRotation: true, angle: -90, visible: true,
position: 'Bottom', alignment: 'Far'
}
};
// add your additional code here
|
Screenshot:
Let us know if you need further assistance on this.
Regards,
Srihari M
Marked as answer
SIGN IN To post a reply.
- 6 Replies
- 2 Participants
- Marked answer
-
DJ Deepak Jain
- Aug 25, 2020 10:52 AM UTC
- Sep 3, 2020 01:57 PM UTC