Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color selection doesn't work #5

Open
mortenf opened this issue Nov 9, 2016 · 6 comments
Open

Color selection doesn't work #5

mortenf opened this issue Nov 9, 2016 · 6 comments

Comments

@mortenf
Copy link

mortenf commented Nov 9, 2016

I have tried building this, then importing it into Power BI Desktop and the service, using both of Explorer and Edge.

In all cases, when trying to change the color of one of the categories, all that happens is a short flash into of the control into the new color before it reverts back to the default.

@amolkare
Copy link

amolkare commented Dec 1, 2016

There seems some issue with the primitivevalues type in DataViewCategoricalColumn interface.

@weiweicui
Copy link

Having the same issue here. Find a workaround to it by changing the selector to
selector: barDataPoint.selectionId.getSelector(),

and using another ISelectionId in the BarChartDataPoint interface:
selectionId: powerbi.visuals.ISelectionId

@sau752
Copy link

sau752 commented Dec 26, 2016

Thanks, it's working with above change!

@KrunalBPatel
Copy link

How you declare the color palette object?
let colorPalette: IColorPalette = host.colorPalette;
I am getting error "Property 'reset' is missing in type 'IColorPalette'" while I am declare this way

And If I declare other way like
let colorPalette= createColorPalette(host.colors).reset();

Then also I am getting the error "Property 'colors' does not exist in 'IvisualHost'"

@grahamrp
Copy link

You're doing the right thing with
let colorPalette: IColorPalette = host.colorPalette;
because this is the way to do it with the later API (from 1.2.0).

You're probably getting the error

Property 'reset' is missing in type 'IColorPalette'

because it is using the definition of IColorPalette in src/colorPalette.ts. With the newer API you don't need this file anymore.

Deletesrc/colorPalette.ts and remove the line that references it in tsconfig.json.

@Marnnn
Copy link

Marnnn commented Dec 15, 2017

Anyone having issues with this and 1.9? I've got an error that the property getSelector() not existing on type ISelectionId, however I can see in the API file that it does exist! Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants