Adjusting the d3-data-viz example code to fit a project and when the values of the below lines are changed to identifiers from the project, the code returns a 400 (Bad Request)
{
"error":
{
"errorClass":"com.gooddata.webapp.service.simpleexecutor.UnsupportedTypeException",
"trace":"",
"message":"Type attribute not supported in simple execution.",
"component":"Webapp",
"errorId":"51ab443c-b4a3-47be-a434-2cecfc4f244f",
"errorCode":"gdc.webapp.execution.unsupported_type",
"parameters":["attribute"]
}
}
Code from example viz.js:
var metric = 'afSEwRwdbMeQ',
attr1 = 'oppclose.aam81lMifn6q',
attr2 = 'label.opp_owner.id.name';
var elements = [attr1, attr2, metric];