apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

heatMap使用dataset加载数据无效 #13233

Closed palespring closed 2 years ago

palespring commented 4 years ago

Version

4.8.0

Reproduction link

https://gallery.echartsjs.com/editor.html?c=x8QB6rzyrV&v=1

Steps to reproduce

热力图

option使用dataset来加载数据

并未起任何效果

What is expected?

希望能使用dataset将值显示在热力图上

What is actually happening?

并没有任何内容的显示


我不确定我是否遗漏了什么,谢谢!

echarts-bot[bot] commented 4 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

plainheart commented 4 years ago

参考文档 使用 dataset 管理数据 的 ”其他“ 部分所述 :热力图暂不支持使用 dataset 数据集。

目前并非所有图表都支持 dataset。支持 dataset 的图表有: line、bar、pie、scatter、effectScatter、parallel、candlestick、map、funnel、custom。 后续会有更多的图表进行支持。

palespring commented 4 years ago

series-heatmap. data

https://echarts.apache.org/zh/option.html#series-heatmap.data

系列中的数据内容数组。数组项通常为具体的数据项。 注意,如果系列没有指定 data,并且 option 有 dataset,那么默认使用第一个 dataset。如果指定了 data,则不会再使用 dataset。 可以使用 series.datasetIndex 指定其他的 dataset。

你好,上面那段文字,在关于series.heatMap.data中,不是写了可以使用dataset么?

参考文档 使用 dataset 管理数据 的 ”其他“ 部分所述 :热力图暂不支持使用 dataset 数据集。

目前并非所有图表都支持 dataset。支持 dataset 的图表有: line、bar、pie、scatter、effectScatter、parallel、candlestick、map、funnel、custom。 后续会有更多的图表进行支持。

plainheart commented 4 years ago

抱歉,应该是教程里漏掉了heatmap。heatmap支持dataset。

palespring commented 4 years ago

那您知道,我这个为什么加载不出来嘛?或者说,我的这个问题出现在哪里?

plainheart commented 4 years ago

没看出来,感觉可以用纯数值的二维数组,可以参考下这个实例:https://echarts.apache.org/examples/zh/editor.html?c=heatmap-cartesian 将 data 改成 dataset.source 可以正常显示。

palespring commented 2 years ago

您好,您的邮件已收到,谢谢