We've started using data labels as annotations on our charts, and generally it seems to be working reasonably well. We do have a few questions, though, and things that we can't seem to get to work.
Hi Jon,
Please find the details below,
|
Queries |
Details |
|
|
2. We can't seem to change the font size of the label. We're trying to set it with "series.DataPoints.DefaultDataPoint.DataLabels.Size = 20;" but there doesn't seem to be any effect. |
You can change the font size of the data label
as shown below,
|
|
|
1, 3,4 and 5 |
Currently, we are checking these queries and will share the further details on or before 2nd August 2023. |
Regards,
Suriya Balamurugan.
Hi Jon,
Please find the details below,
|
Queries |
Details |
|
Regarding word has an option for formatting data labels as callouts (Add Chart Element -> Data Labels -> Data Callouts). Is there any way to get this in the DocIO API? |
Currently, we doesn’t have support for creating data callout in chart data labels. We have logged this requirement as feature request in our database. We don’t have any immediate plans to implement this feature. We will let you know when this feature is implemented. You can
track the status of this feature from the below link: |
|
Regarding we'd like to add more space between the series marker and the label. There seems to be layout properties in the DataLabels and FrameFormat properties, but we haven't |
using the below code to set the manual layout for data labels:
series1.DataPoints[1].DataLabels.Layout.ManualLayout.Left = 0.3621109861267375;
|
|
Regrading we can set the background for the label, but not with any transparency. |
Using the below code to set the transparency of the color:
series1.DataPoints.DefaultDataPoint.DataLabels.FrameFormat.Fill.FillType = OfficeFillType.SolidColor; series1.DataPoints.DefaultDataPoint.DataLabels.FrameFormat.Interior.ForegroundColor = Color.Blue; series1.DataPoints.DefaultDataPoint.DataLabels.FrameFormat.Fill.Transparency = 0.75; |
|
Regarding we can set the border of the data label fine, but we'd like to be able to adjust the margin around the text, like Word allows |
Currently, we doesn’t have support for creating text margin in chart data labels. We have logged this requirement as feature request in our database. We don’t have any immediate plans to implement this feature. We will let you know when this feature is implemented. You can
track the status of this feature from the below link: |
Please refer to the complete sample application from
the below attachment.
Regards,
Lokesh B
Thanks very much for the response. We'll make the changes and check back in a while for an update on the feature adds.
Much appreciated.
Regards,
Jon.
Hi Jon,
You're welcome. Please check and let us know your feedback for the given solution. Please revert us back if you require further assistance.
Regards,
Jayashree