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