Skip to content

Instantly share code, notes, and snippets.

@vaclavbohac
Created January 18, 2018 13:37
Show Gist options
  • Save vaclavbohac/7bfc17c5ea788e67bb04a6d523ef0e96 to your computer and use it in GitHub Desktop.
Save vaclavbohac/7bfc17c5ea788e67bb04a6d523ef0e96 to your computer and use it in GitHub Desktop.
Getting visualization object type
// Assuming ES6
import * as GoodData from 'goodddata';
const uri = '/gdc/md/la84vcyhrq8jwbu4wpipw66q2sqeb923/obj/349238';
GoodData.xhr.get(uri).then((object) => {
console.log(object.visualization.content.type);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment