The following feature is a BaseExtensions feature that works on charts. This can be used to change the color of the selected chart element in both Word, PowerPoint and Excel, for which reason it makes sense to use this command as a tool to highlight series in a chart.
We are able to define both RGB colors and accent colors.
Notice that when using this feature in PowerPoint, we need include the native "current selection" menu in the ribbon as well. Otherwise, the feature will not work in PowerPoint as it needs to know what is selected in the chart in order to change the color of the particular element. This is the injected feature:
<Inject showInWord="false" showInExcel="false">
<control idQ="ChartElementSelector" visible="true"/>
<Cmd case="BaseExtensions:color-chart-element" color="0,0,0"/>
Define the color in RGB and use comma as separator. This parameter is required unless the parameter below is used instead.
Define which theme color that should be applied, e.g. "Accent4". Ensure that you do not define both color parameters.
Add true to this parameter if the defined color should also color the markers used in lines charts.