apache / echarts

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

[Bug] When there is a single point on the chart then the tooltip is not working #18671

Open rmes-pavan opened 1 year ago

rmes-pavan commented 1 year ago

Version

5.2.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=scatter3D-dataset&gl=1&version=5.2.2

Steps to Reproduce

I added the link to play scattered 3d chart. Then After I am attaching the file which option data, you can set this option data and get the chart expected, github echart bug log.txt then hove the point on the graph but is not showing any tool tip,

but if you add any other point in the chart like [1,'2023-02-01 01:01:01',3] then it start showing the tool tip.

Current Behavior

It is not showing the tooltipe for single point

Expected Behavior

It should show the tool tip even there is a single point.

Environment

- OS:window 10 , ubuntu 20.04.02 LTS
- Browser: Chrome
- Framework:Angular js

Any additional comments?

{ "title": { "text": "Cable Tx Google 2023-2-21 - 2023-3-2", "left": 10 }, "tooltip": { "show": true, "position": "right" }, "toolbox": { "right": "2%", "feature": { "restore": { "title": "" }, "saveAsImage": { "title": "" } } }, "grid3D": { "boxWidth": 250, "boxDepth": 250, "boxHeight": 100, "height": "90%", "width": "100%", "top": "top", "viewControl": { "distance": 300, "alpha": 0 }, "splitArea": { "show": true } }, "xAxis3D": { "type": "value", "name": "Length(m)", "nameGap": 40 }, "yAxis3D": { "type": "category", "name": "Date", "nameGap": 40 }, "zAxis3D": { "type": "value", "name": "Amp(pC)", "nameGap": 40, "axisLable": { "margin": 25 } }, "dataset": { "dimensions": [ "Length(m)", { "name": "Date", "type": "time" }, "Charge(pC)" ], "source": [ [ 0, "2023-03-1 09:48:22", 0 ] ] }, "series": [ { "type": "scatter3D", "symbolSize": 2.5, "encode": { "x": "Length(m)", "y": "Date", "z": "Charge(pC)", "tooltip": [ 0, 1, 2 ] } } ] }

This is my option value if there is no file attached

helgasoft commented 1 year ago

duplicate of https://github.com/ecomfe/echarts-gl/issues/342

anauwal commented 1 year ago

up, please fix this