Hi
I am using this code also but I am getting the following error
error TYPESCRIPT /src/visual.ts : (82,13) Type 'powerbi.extensibility.IColorPalette' is not assignable to type 'power
bi.extensibility.visual.PBI_CV_8D244A15_FCEE_4355_A23C_3E763013AF73.IColorPalette'.
Property 'reset' is missing in type 'IColorPalette'.
And This error has been resolved by changing
selector: barDataPoint.selectionId.getSelector()