Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
23596acc
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 搜索 >>
未验证
提交
23596acc
编写于
8月 04, 2020
作者:
Y
Yi Shen
提交者:
GitHub
8月 04, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #11849 from susiwen8/#7533
Fix dataview show NaN when user use dataset
上级
419336e4
0f676233
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
34 addition
and
5 deletion
+34
-5
src/component/toolbox/feature/DataView.js
src/component/toolbox/feature/DataView.js
+2
-1
test/dataset-charts.html
test/dataset-charts.html
+32
-4
未找到文件。
src/component/toolbox/feature/DataView.js
浏览文件 @
23596acc
...
...
@@ -93,7 +93,8 @@ function assembleSeriesWithCategoryAxis(series) {
}));
var
columns
=
[
categoryAxis
.
model
.
getCategories
()];
zrUtil
.
each
(
group
.
series
,
function
(
series
)
{
columns
.
push
(
series
.
getRawData
().
mapArray
(
valueAxisDim
,
function
(
val
)
{
var
rawData
=
series
.
getRawData
();
columns
.
push
(
series
.
getRawData
().
mapArray
(
rawData
.
mapDimension
(
valueAxisDim
),
function
(
val
)
{
return
val
;
}));
});
...
...
test/dataset-charts.html
浏览文件 @
23596acc
...
...
@@ -57,6 +57,7 @@ under the License.
<div
id=
"layout9"
></div>
<div
id=
"layout10"
></div>
<div
id=
"layout11"
></div>
<div
id=
"layout12"
></div>
...
...
@@ -884,11 +885,38 @@ under the License.
});
</script>
<script>
require
([
'
echarts
'
],
function
(
echarts
)
{
var
option
=
{
dataset
:
{
source
:
[
[
'
product
'
,
'
2015
'
,
'
2016
'
,
'
2017
'
],
[
'
Matcha Latte
'
,
43.3
,
85.8
,
93.7
],
[
'
Milk Tea
'
,
83.1
,
73.4
,
55.1
],
[
'
Cheese Cocoa
'
,
86.4
,
65.2
,
82.5
],
[
'
Walnut Brownie
'
,
72.4
,
53.9
,
39.1
]
]
},
xAxis
:
{
type
:
'
category
'
},
yAxis
:
{},
series
:
[
{
type
:
'
bar
'
},
{
type
:
'
bar
'
},
{
type
:
'
bar
'
}
],
toolbox
:
{
feature
:
{
dataView
:
{}
}
}
}
testHelper
.
create
(
echarts
,
'
layout12
'
,
{
option
:
option
,
dataTable
:
option
.
dataset
.
source
});
});
</script>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录