提交 fa119bf2 编写于 作者: D deqingli

modified settings in the TreeSeries

上级 a315dca0
......@@ -98,7 +98,7 @@ define(function (require) {
expandAndCollapse: true,
initialTreeDepth: 1,
initialTreeDepth: 2,
lineStyle: {
normal: {
......
......@@ -30,34 +30,8 @@
chart.resize();
};
$.getJSON('./data/ec-option-doc-statistics-201604.json')
.done(function (rawData) {
function convert(source, target, basePath) {
for (var key in source) {
var path = key;
if (key.match(/^\$/)) {
}
else {
target.children = target.children || [];
var child = {
name: path
};
target.children.push(child);
convert(source[key], child, path);
}
}
if (!target.children) {
target.value = source.$count || 1;
}
}
var data = {name: 'option'};
convert(rawData, data, '');
$.getJSON('./data/flare.json')
.done(function (data) {
chart.setOption({
......@@ -72,15 +46,13 @@
data: [data],
top: '2%',
top: '1%',
left: '7%',
bottom: '2%',
bottom: '1%',
right: '20%',
symbolSize: 7,
initialTreeDepth: 1,
label: {
normal: {
position: 'left',
......
......@@ -156,16 +156,26 @@
"name": "flare",
"children": [
{
"name": "data",
"name": "flex",
"children": [
{
"name": "converters",
"children": [
{"name": "DelimitedTextConverter", "value": 4294}
]
}
{"name": "FlareVis", "value": 4116}
]
},
{
"name": "scale",
"children": [
{"name": "IScaleMap", "value": 2105},
{"name": "LinearScale", "value": 1316},
{"name": "LogScale", "value": 3151},
{"name": "OrdinalScale", "value": 3770},
{"name": "QuantileScale", "value": 2435},
{"name": "QuantitativeScale", "value": 4839},
{"name": "RootScale", "value": 1756},
{"name": "Scale", "value": 4268},
{"name": "ScaleType", "value": 1821},
{"name": "TimeScale", "value": 5833}
]
},
{
"name": "display",
"children": [
......@@ -212,8 +222,6 @@
symbolSize: 7,
initialTreeDepth: 2,
label: {
normal: {
position: 'left',
......@@ -243,15 +251,13 @@
name: 'tree2',
data: [data2],
top: '5%',
top: '20%',
left: '60%',
bottom: '2%',
right: '20%',
bottom: '22%',
right: '18%',
symbolSize: 7,
initialTreeDepth: 1,
label: {
normal: {
position: 'left',
......
......@@ -56,8 +56,6 @@
expandAndCollapse: true,
initialTreeDepth: 2,
label: {
normal: {
position: 'top',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册