Reapply the chart's design

Modified on Mon, 5 Oct at 1:54 PM

The following command reapplies the chart's design from its alternative text.

XML
<Cmd case="SkabelonDesign.CorporateCharts3:Reapply"/>

This command is handy in cases where a chart element is changed and needs to be reformatted before another command is triggered.

For example, in the following client module, the command is used to reapply the specific data label color, that is defined in the chart's design, before moving the labels to the InsideEnd, Center, and InsideBase positions. This is necessary in this case, since when the labels are moved to the OutsideEnd position their color is changed to a color different than the one defined in the chart's design.

XML
<Button label="CorporateCharts:cc_datalabels_insideend" icon="ChartDataLabel" enable="CorporateCharts:onChart">
  <Cmd case="SkabelonDesign.CorporateCharts3:Reapply"/>
  <Cmd case="SkabelonDesign.CorporateCharts3:DatalabelPosition" position="InsideEnd" lineBasedPosition="Below"/>
</Button>

<Button label="CorporateCharts:cc_datalabels_center" icon="ChartDataLabel" enable="CorporateCharts:onChart">
  <Cmd case="SkabelonDesign.CorporateCharts3:Reapply"/>
  <Cmd case="SkabelonDesign.CorporateCharts3:DatalabelPosition" position="Center" lineBasedPosition="Center"/>
</Button>

<Button label="CorporateCharts:cc_datalabels_base" icon="ChartDataLabel" enable="CorporateCharts:onChart">
  <Cmd case="SkabelonDesign.CorporateCharts3:Reapply"/>
  <Cmd case="SkabelonDesign.CorporateCharts3:DatalabelPosition" position="InsideBase" lineBasedPosition="Below"/>
</Button>

<Button label="CorporateCharts:cc_datalabels_outside" icon="ChartDataLabel" enable="CorporateCharts:onChart">
   <Cmd case="SkabelonDesign.CorporateCharts3:DatalabelPosition" position="OutsideEnd" lineBasedPosition="Above" colorsPath="MainColors.json" colorRef="MidGrey"/>
</Button>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article