The following command reapplies the chart's design from its alternative text.
<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.
<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>
Comments
0 comments
Article is closed for comments.