spotfiresoftware / spotfire-mods

Spotfire® Mods
https://spotfiresoftware.github.io/spotfire-mods/
Other
56 stars 41 forks source link

Create a bar chart using Google Charts #50

Closed leungi closed 3 years ago

leungi commented 3 years ago

In selection/marking section, the rows in selectRow() function is not declared previously; consequently, marking doesn't work in rendered Mod.

objerke commented 3 years ago

Hi @leungi. Thank you for helping us by reporting this issue! The tutorial got out of sync with the examples after we changed the preferred way to read the dataview rows.

Until we update the tutorial, here is the dev starter JavaScript file as it was when the tutorial was written: https://github.com/TIBCOSoftware/spotfire-mods/blob/master/examples/js-dev-starter/src/main.js

Here is what we changed when the rows variable was removed in favor of retrieving the hierarchy object: https://github.com/TIBCOSoftware/spotfire-mods/commit/66e722a284d4308c59297feab890541b57563f61#diff-02b11b55b277b62abe69946309f5c1e2076b9ac6f1c14ebfc2f08b97a35a998a