Forum Discussion

ferryv's avatar
ferryv
Resolver II
2 years ago
Solved

Data Color issue - custom visual barChart

I copied the source from the github repo and used pbiviz package to  package the file and import the visual in powerbi desktop with the aim to see if it all works.   owever, when opening the Data C...
  • ferryv's avatar
    ferryv
    2 years ago

    Thanks. Was trying to get the barChart github files to work properly to understand what happened.

     

    Managed to resolve it by:

    - rerunning: npm i -g powerbi-visuals-tools@latest and npm i d3@latest --save to get the latest libraries

    - setting up a new project using pbiviz new barChart

    - copying the files from the github repo (https://github.com/microsoft/PowerBI-visuals-sampleBarChart) in the new barChart folder (incl replacing existing ones)

    - change the version in pbiviz.json from  "version": "4.0.0" to  "version": "4.0.0.0" as an error occurred (version should be in 4 parts) with the latest libraries

    - installed Microsoft Power BI visuals TooltipUtils (as this was missing) via npm i powerbi-visuals-utils-tooltiputils

     

    When packaging the file via pbiviz package and importing it in PowerBI Desktop, it worked fine.