调整 d3-data-viz 示例代码以适应项目,当以下行的值更改为项目中的标识符时,代码返回 400(错误请求)
{
"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"]
}
}
示例 viz.js 中的代码:
var metric = 'afSEwRwdbMeQ',
attr1 = 'oppclose.aam81lMifn6q',
attr2 = 'label.opp_owner.id.name';
var elements = [attr1, attr2, metric];