Thursday, December 22, 2022

Chart label issue with #PERCENT, #VAL and #TOTAL - Microsoft Support [MS]

Symptom

Charts in UCI does not work when #PERCENT, #VAL and #TOTAL are used in Chart XML.

Cause

Currently we only partially support the #PERCENT in UCI, but not the rest "#VAL of #TOTAL". And we have no plan to support the "#VAL of #TOTAL" in the future. This is the limitation due to switching to Highcharts library. (Webclient is using .NET library and UCI is using Highcharts library) 

Mitigation

How to use #PERCENT in UCI

Add "#PERCENT" in <Series> node (and add isValueShownAsLabel="False")

For example, 

<Series IsValueShownAsLabel="False" LabelForeColor="59, 59, 59" Label="#PERCENT" ChartType="pie">
          <SmartLabelStyle Enabled="True" />
 </Series>

ChartPercentLabel

No comments:

Post a Comment

Search This Blog