Hi,
I need some code for data label font style handle. In datalabel one is category name and another one is percentage of the category in this percentage I need to displaying the bold style.
For your reference I attached the zip file.
TreeMapChart.zip (51.4 KB)
@sanjeevkumar.v
By executing your code, we found the code of setting Bold property:
labels.Font.IsBold = true;
does take effect in the image generated by:
chart.ToImage(chartImageStream, new ImageOrPrintOptions...
Please see attached images we got(bold.png is the result with the code of setting font.Bold, noBold.png is the result without the code).
boldfonttest.zip (31.2 KB)
Would you please check whether it is the expected behavior? If not, please describe your requirement with more details. And it would be much better for us to understand and evaluate your requirement if you can provide us the image or template workbook file to show the expected result.
@johnson.shi
percentage I need to displaying the bold style. Not full text of dataLabel
@sanjeevkumar.v
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSNET-57959
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@sanjeevkumar.v,
I attempted to set only the percentage (value) portion of the data labels in a TreeMap chart in MS Excel to bold, but I couldn’t achieve this. The formatting either applies to the entire text as bold or keeps it normal, without allowing partial text formatting. Could you provide a sample Excel file with a TreeMap chart where the percentage (value) part of the data labels is bold? This might help in evaluating the issue and resolving it more effectively.
@sanjeevkumar.v
The new charts since Excel 2016 does not support formatting part of data label.
Do you only need to convert the chart to image ?