Forum Discussion
Editting an existing Custom Visual
- 9 years ago
Anonymous,
I mean to replace 'Timeline1447991079100' with a new value.
Anonymous,
You will need to change all the code related to guid in package.json.
- Anonymous9 years agoNot applicable
The Package.Json has a GUID value of 'Timeline1447991079100'
Inside Timeline.js there is a var Timeline1447991079100; (function (Timeline1447991079100) { **Lots of Code** }
Inside {** Lots of Code **} is where i've made a tonne of changes. None of which seem to have an effect on the visual itself. For example there is a visual that shows "Y - Q - M - W - D" which has only a single reference in the code "this.granularitySelectors = ['Y', 'Q', 'M', 'W', 'D'];"
So i change it to "this.granularitySelectors = ['FY', 'Q', 'M', 'W', 'D'];", save the Timeline.js and putting it back into the .pbiviz using 7-Zip. Next load that .pbiviz into a Power BI desktop file i have open using the 'Import From File' under visualisations. I connect it to data and all of the visuals are completely unchanged.
If feels like there is some 'compile' step that i'm missing and i'm just updating source code.
- v-chuncz-msft9 years agoCommunity Support
Anonymous,
I mean to replace 'Timeline1447991079100' with a new value.
- Anonymous9 years agoNot applicable
I think this must be the right answer. I incremented this GUID value by 1 and got an error when i've attempted to install the updated package. The fact that i got the error makes me happy as thats something new. Thanks for your help!