Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
68f5db81
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,体验更适合开发者的 AI 搜索 >>
提交
68f5db81
编写于
6月 21, 2013
作者:
K
kener
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
toolbox refresh功能改名为restore
上级
29809d42
变更
36
隐藏空白更改
内联
并排
Showing
36 changed file
with
45 addition
and
44 deletion
+45
-44
doc/doc.html
doc/doc.html
+2
-1
doc/example/axis.html
doc/example/axis.html
+1
-1
doc/example/bar.html
doc/example/bar.html
+1
-1
doc/example/bar1.html
doc/example/bar1.html
+1
-1
doc/example/bar2.html
doc/example/bar2.html
+1
-1
doc/example/bar3.html
doc/example/bar3.html
+1
-1
doc/example/bar4.html
doc/example/bar4.html
+1
-1
doc/example/bar5.html
doc/example/bar5.html
+1
-1
doc/example/dataZoom.html
doc/example/dataZoom.html
+1
-1
doc/example/dataZoom1.html
doc/example/dataZoom1.html
+1
-1
doc/example/event.html
doc/example/event.html
+1
-1
doc/example/k.html
doc/example/k.html
+1
-1
doc/example/k1.html
doc/example/k1.html
+1
-1
doc/example/lasagna.html
doc/example/lasagna.html
+2
-2
doc/example/line.html
doc/example/line.html
+1
-1
doc/example/line1.html
doc/example/line1.html
+1
-1
doc/example/line2.html
doc/example/line2.html
+1
-1
doc/example/line3.html
doc/example/line3.html
+1
-1
doc/example/line4.html
doc/example/line4.html
+1
-1
doc/example/line5.html
doc/example/line5.html
+1
-1
doc/example/loading.html
doc/example/loading.html
+5
-5
doc/example/map1.html
doc/example/map1.html
+1
-1
doc/example/mix1.html
doc/example/mix1.html
+1
-1
doc/example/mix2.html
doc/example/mix2.html
+1
-1
doc/example/mix3.html
doc/example/mix3.html
+1
-1
doc/example/pie.html
doc/example/pie.html
+1
-1
doc/example/pie1.html
doc/example/pie1.html
+1
-1
doc/example/pie2.html
doc/example/pie2.html
+1
-1
doc/example/pie3.html
doc/example/pie3.html
+1
-1
doc/example/scatter.html
doc/example/scatter.html
+1
-1
doc/example/scatter1.html
doc/example/scatter1.html
+1
-1
doc/example/scatter2.html
doc/example/scatter2.html
+1
-1
doc/example/scatter3.html
doc/example/scatter3.html
+1
-1
doc/example/tooltip.html
doc/example/tooltip.html
+1
-1
src/component/toolbox.js
src/component/toolbox.js
+3
-3
src/util/shape/icon.js
src/util/shape/icon.js
+2
-2
未找到文件。
doc/doc.html
浏览文件 @
68f5db81
...
...
@@ -364,7 +364,7 @@ myChart.setOption(option);
<tr>
<td>
{void} on
</td>
<td>
{string} eventName,
<br/>
{Function} eventListener
</td>
<td>
事件绑定,支持事件有:
<br/>
REFRESH,
CLICK,HOVER,
<br/>
DATA_CHANGED,DATA_ZOOM,LEGEND_SELECTED,MAGIC_TYPE_CHANGED
</td>
<td>
事件绑定,支持事件有:
<br/>
REFRESH,
RESTORE,CLICK,HOVER,
<br/>
DATA_CHANGED,MAGIC_TYPE_CHANGED,DATA_VIEW_CHANGED,
<br/>
DATA_ZOOM,DATA_RANGE,LEGEND_SELECTED,MAP_SELECTED
</td>
</tr>
<tr>
<td>
{void} un
</td>
...
...
@@ -718,6 +718,7 @@ myChart.setOption(option);
<pre>
feature : {
mark : true, // 辅助线标志
dataZoom : true, // 框选区域缩放,自动与存在的dataZoom控件同步
dataView : true, // 数据视图
magicType:['line', 'bar'], // 图表类型切换,当前仅支持直角系下的折线图、柱状图转换
restore : true // 还原,复位原始图表
...
...
doc/example/axis.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : true,
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
xAxis : [
...
...
doc/example/bar.html
浏览文件 @
68f5db81
...
...
@@ -81,7 +81,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/bar1.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/bar2.html
浏览文件 @
68f5db81
...
...
@@ -83,7 +83,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/bar3.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/bar4.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/bar5.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/dataZoom.html
浏览文件 @
68f5db81
...
...
@@ -77,7 +77,7 @@ option = {
mark : true,
dataView : true,
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/dataZoom1.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : true,
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/event.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly:false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/k.html
浏览文件 @
68f5db81
...
...
@@ -88,7 +88,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
dataZoom : {
...
...
doc/example/k1.html
浏览文件 @
68f5db81
...
...
@@ -88,7 +88,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
dataZoom : {
...
...
doc/example/lasagna.html
浏览文件 @
68f5db81
...
...
@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : false,
...
...
@@ -135,7 +135,7 @@ setTimeout(function(){
textFont:'normal 20px 微软雅黑'
}
});
_ZR.re
fresh
();
_ZR.re
store
();
}, 2000);
</textarea>
...
...
doc/example/line.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/line1.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/line2.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/line3.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/line4.html
浏览文件 @
68f5db81
...
...
@@ -80,7 +80,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/line5.html
浏览文件 @
68f5db81
...
...
@@ -77,7 +77,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/loading.html
浏览文件 @
68f5db81
...
...
@@ -78,7 +78,7 @@ myChart.showLoading({
});
clearTimeout(loadingTicket);
loadingTicket = setTimeout(function(){
re
fresh
ing = false;
re
store
ing = false;
myChart.setSeries([
{
name:'蒸发量',
...
...
@@ -153,7 +153,7 @@ loadingTicket = setTimeout(function(){
function
focusGraphic
()
{
domCode
.
className
=
'
span4 ani
'
;
domGraphic
.
className
=
'
span8 ani
'
;
re
fresh
()
re
store
()
}
var
editor
=
CodeMirror
.
fromTextArea
(
...
...
@@ -166,7 +166,7 @@ loadingTicket = setTimeout(function(){
editor
.
on
(
'
change
'
,
function
(){
needRefresh
=
true
;});
var
effectIndex
=
-
1
;
function
re
fresh
(
isBtnRefresh
){
function
re
store
(
isBtnRefresh
){
if
(
isBtnRefresh
)
{
needRefresh
=
true
;
focusGraphic
();
...
...
@@ -216,7 +216,7 @@ loadingTicket = setTimeout(function(){
mark
:
true
,
dataView
:
{
readOnly
:
false
},
magicType
:[
'
line
'
,
'
bar
'
],
re
fresh
:
true
re
store
:
true
}
},
legend
:
{
...
...
@@ -236,7 +236,7 @@ loadingTicket = setTimeout(function(){
]},
true
);
re
fresh
();
re
store
();
}
)
</script>
...
...
doc/example/map1.html
浏览文件 @
68f5db81
...
...
@@ -96,7 +96,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
series : [
...
...
doc/example/mix1.html
浏览文件 @
68f5db81
...
...
@@ -77,7 +77,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/mix2.html
浏览文件 @
68f5db81
...
...
@@ -78,7 +78,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/mix3.html
浏览文件 @
68f5db81
...
...
@@ -90,7 +90,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
series : [
...
...
doc/example/pie.html
浏览文件 @
68f5db81
...
...
@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/pie1.html
浏览文件 @
68f5db81
...
...
@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/pie2.html
浏览文件 @
68f5db81
...
...
@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/pie3.html
浏览文件 @
68f5db81
...
...
@@ -82,7 +82,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : false,
...
...
doc/example/scatter.html
浏览文件 @
68f5db81
...
...
@@ -79,7 +79,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/scatter1.html
浏览文件 @
68f5db81
...
...
@@ -79,7 +79,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/scatter2.html
浏览文件 @
68f5db81
...
...
@@ -79,7 +79,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/scatter3.html
浏览文件 @
68f5db81
...
...
@@ -79,7 +79,7 @@ option = {
feature : {
mark : true,
dataView : {readOnly: false},
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
doc/example/tooltip.html
浏览文件 @
68f5db81
...
...
@@ -103,7 +103,7 @@ option = {
mark : true,
dataView : {readOnly: false},
magicType:['line', 'bar'],
re
fresh
: true
re
store
: true
}
},
calculable : true,
...
...
src/component/toolbox.js
浏览文件 @
68f5db81
...
...
@@ -152,8 +152,8 @@ define(function (require) {
}
itemShape
.
onclick
=
_onDataView
;
break
;
case
'
re
fresh
'
:
itemShape
.
onclick
=
_onRe
fresh
;
case
'
re
store
'
:
itemShape
.
onclick
=
_onRe
store
;
break
;
default
:
if
(
_iconList
[
i
].
match
(
'
Chart
'
))
{
...
...
@@ -419,7 +419,7 @@ define(function (require) {
return
true
;
}
function
_onRe
fresh
(){
function
_onRe
store
(){
_resetMark
();
messageCenter
.
dispatch
(
ecConfig
.
EVENT
.
RESTORE
);
return
true
;
...
...
src/util/shape/icon.js
浏览文件 @
68f5db81
...
...
@@ -85,7 +85,7 @@ define(
mark
:
_iconMark
,
markUndo
:
_iconMarkUndo
,
markClear
:
_iconMarkClear
,
re
fresh
:
_iconRefresh
,
re
store
:
_iconRestore
,
lineChart
:
_iconLineChart
,
barChart
:
_iconBarChart
,
dataView
:
_iconDataView
,
...
...
@@ -160,7 +160,7 @@ define(
ctx
.
lineTo
(
style
.
x
+
style
.
width
,
style
.
y
+
5
*
dy
);
}
function
_iconRe
fresh
(
ctx
,
style
)
{
function
_iconRe
store
(
ctx
,
style
)
{
var
dx
=
style
.
width
/
16
;
var
dy
=
style
.
height
/
16
;
var
r
=
style
.
width
/
2
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录