Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
1afda1b2
I
incubator-echarts
项目概览
x649585723
/
incubator-echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1afda1b2
编写于
9月 27, 2019
作者:
S
SHUANG SU
提交者:
sushuang
9月 27, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: add muti-lang for legend selector and little tweak.
上级
c5eba3c0
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
48 addition
and
8 deletion
+48
-8
src/component/legend/LegendModel.js
src/component/legend/LegendModel.js
+3
-3
src/lang.js
src/lang.js
+5
-2
src/langEN.js
src/langEN.js
+5
-2
src/langES.js
src/langES.js
+9
-0
src/langFI.js
src/langFI.js
+9
-0
src/langTH.js
src/langTH.js
+10
-0
test/bar2.html
test/bar2.html
+7
-1
未找到文件。
src/component/legend/LegendModel.js
浏览文件 @
1afda1b2
...
@@ -23,16 +23,16 @@ import Model from '../../model/Model';
...
@@ -23,16 +23,16 @@ import Model from '../../model/Model';
import
{
isNameSpecified
}
from
'
../../util/model
'
;
import
{
isNameSpecified
}
from
'
../../util/model
'
;
import
lang
from
'
../../lang
'
;
import
lang
from
'
../../lang
'
;
var
lang
Title
=
lang
.
legendSelector
.
title
;
var
lang
Selector
=
lang
.
legend
.
selector
;
var
defaultSelectorOption
=
{
var
defaultSelectorOption
=
{
all
:
{
all
:
{
type
:
'
all
'
,
type
:
'
all
'
,
title
:
zrUtil
.
clone
(
lang
Title
.
all
)
title
:
zrUtil
.
clone
(
lang
Selector
.
all
)
},
},
inverse
:
{
inverse
:
{
type
:
'
inverse
'
,
type
:
'
inverse
'
,
title
:
zrUtil
.
clone
(
lang
Title
.
inverse
)
title
:
zrUtil
.
clone
(
lang
Selector
.
inverse
)
}
}
};
};
...
...
src/lang.js
浏览文件 @
1afda1b2
...
@@ -17,10 +17,13 @@
...
@@ -17,10 +17,13 @@
* under the License.
* under the License.
*/
*/
/**
* Language: (Simplified) Chinese.
*/
export
default
{
export
default
{
legend
Selector
:
{
legend
:
{
title
:
{
selector
:
{
all
:
'
全选
'
,
all
:
'
全选
'
,
inverse
:
'
反选
'
inverse
:
'
反选
'
}
}
...
...
src/langEN.js
浏览文件 @
1afda1b2
...
@@ -17,10 +17,13 @@
...
@@ -17,10 +17,13 @@
* under the License.
* under the License.
*/
*/
/**
* Language: English.
*/
export
default
{
export
default
{
legend
Selector
:
{
legend
:
{
title
:
{
selector
:
{
all
:
'
All
'
,
all
:
'
All
'
,
inverse
:
'
Inv
'
inverse
:
'
Inv
'
}
}
...
...
src/langES.js
浏览文件 @
1afda1b2
...
@@ -17,8 +17,17 @@
...
@@ -17,8 +17,17 @@
* under the License.
* under the License.
*/
*/
/**
* Language: Spanish
*/
export
default
{
export
default
{
legend
:
{
selector
:
{
all
:
'
Todas
'
,
inverse
:
'
Inversa
'
}
},
toolbox
:
{
toolbox
:
{
brush
:
{
brush
:
{
title
:
{
title
:
{
...
...
src/langFI.js
浏览文件 @
1afda1b2
...
@@ -17,8 +17,17 @@
...
@@ -17,8 +17,17 @@
* under the License.
* under the License.
*/
*/
/**
* Language: Finnish
*/
export
default
{
export
default
{
legend
:
{
selector
:
{
all
:
'
Kaikki
'
,
inverse
:
'
Käänteinen
'
}
},
toolbox
:
{
toolbox
:
{
brush
:
{
brush
:
{
title
:
{
title
:
{
...
...
src/langTH.js
浏览文件 @
1afda1b2
...
@@ -17,7 +17,17 @@
...
@@ -17,7 +17,17 @@
* under the License.
* under the License.
*/
*/
/**
* Language: Thai
*/
export
default
{
export
default
{
legend
:
{
selector
:
{
all
:
'
ทั้งหมด
'
,
inverse
:
'
ผกผัน
'
}
},
toolbox
:
{
toolbox
:
{
brush
:
{
brush
:
{
title
:
{
title
:
{
...
...
test/bar2.html
浏览文件 @
1afda1b2
...
@@ -358,7 +358,7 @@ under the License.
...
@@ -358,7 +358,7 @@ under the License.
function
makeSeriesData
()
{
function
makeSeriesData
()
{
var
result
=
[];
var
result
=
[];
var
date
=
10
0
;
var
date
=
0
;
for
(
var
i
=
0
;
i
<
dataCount
;
i
++
)
{
for
(
var
i
=
0
;
i
<
dataCount
;
i
++
)
{
result
.
push
([
+
date
,
Math
.
random
()
*
1000
]);
result
.
push
([
+
date
,
Math
.
random
()
*
1000
]);
date
+=
5
;
date
+=
5
;
...
@@ -372,6 +372,7 @@ under the License.
...
@@ -372,6 +372,7 @@ under the License.
option
=
{
option
=
{
xAxis
:
{
xAxis
:
{
scale
:
true
,
scale
:
true
,
// boundaryGap: ['0.5%', .1],
splitLine
:
{
show
:
false
}
splitLine
:
{
show
:
false
}
},
},
yAxis
:
{
yAxis
:
{
...
@@ -382,6 +383,11 @@ under the License.
...
@@ -382,6 +383,11 @@ under the License.
axisTick
:
{
show
:
false
},
axisTick
:
{
show
:
false
},
splitLine
:
{
show
:
false
}
splitLine
:
{
show
:
false
}
},
},
dataZoom
:
[{
type
:
'
slider
'
},
{
type
:
'
inside
'
}],
legend
:
{},
legend
:
{},
series
:
[{
series
:
[{
name
:
'
barA
'
,
name
:
'
barA
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录