Forum Discussion
Hekp with barChartExample
- 9 years ago
First I would strongly suggest you use a more recent up to date v.1.4.0 version available on Github
https://github.com/Microsoft/PowerBI-visuals-sampleBarChartand not refer to code provided at the Gist link https://gist.github.com/deldersveld/2e12892c516d5bi
The main reason is it contains only part of a code that was built using previous v.1.1.0 version. Now for that resaon it would surely work if you use whole api>v1.1.0 - schema.pbiviz.json with corresponding capabilities.json definition,...though the visual.ts code segment provided on Gist link won't work if you try to cut and paste and mix it with a Visual Studio Code 1.4.0. generated template. You'll either have to refactor the code to v1.4.0 or simply remove any v1.4.0 reference and simply refer everything back to v.1.1.0.
Hope it helps.
First I would strongly suggest you use a more recent up to date v.1.4.0 version available on Github
https://github.com/Microsoft/PowerBI-visuals-sampleBarChart
and not refer to code provided at the Gist link https://gist.github.com/deldersveld/2e12892c516d5bi
The main reason is it contains only part of a code that was built using previous v.1.1.0 version. Now for that resaon it would surely work if you use whole api>v1.1.0 - schema.pbiviz.json with corresponding capabilities.json definition,...
though the visual.ts code segment provided on Gist link won't work if you try to cut and paste and mix it with a Visual Studio Code 1.4.0. generated template. You'll either have to refactor the code to v1.4.0 or simply remove any v1.4.0 reference and simply refer everything back to v.1.1.0.
Hope it helps.