datavjs/doc/dataFormat.md
2012-10-20 22:13:19 +08:00

95 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*以下描述可视化使用说明主要针对数据库表格一个field项表示表格某个列,
type 表示类型, "string" 或 "number" 或 "string or number";
required 表示该项可选还是必须, true 或 false;
count 表示field出现的数量"1", "2", "3", ... (指定数字)或 "1+", "2+", .....(指定最小数) 或 "1-2", "2-5"(指定范围);
*/
/**
* 饼图、单层treemap字段描述 (Pie, Treemap)
*/
fields = {
label: {
type: "string",
required: false,
count : "1"
},
value: {
type: "number",
required: true,
count : "1"
}
};
/**
* line, area, bar, column字段描述 //stream应该也是这个格式但目前没有加入
*/
fields = {
label: {
type: "string",
required: false,
count : "1"
},
value: {
type: "number",
required: true,
count : "1+"
}
};
/**
* scatter字段描述
*/
fields = {
label: {
type: "string",
required: false,
count : "1"
},
x_value: {
type: "number",
required: true,
count : "1"
},
y_value: {
type: "number",
required: true,
count : "1"
}
};
/**
* parallel字段描述
*/
fields = {
label: { //目前组件是没有label的但可以考虑添加。
type: "string",
required: false,
count : "1"
},
value: {
type: "string or number",
required: true,
count : "2+"
}
};
/**
* scatterplotmatrix字段描述
*/
fields = {
label: { //目前组件是没有label的但可以考虑添加。
type: "string",
required: false,
count : "1"
},
value: {
type: "string or number",
required: true,
count : "2+"
}
};