如何绘制散点密度图
What problem does this feature solve?
我想绘制散点密度图,就是点的颜色会跟据点的密集程度进行变化,如下图:
它很像visualMap,维度是点的密度。我在echarts中,找不到绘制散点密度图的方法。
What does the proposed API look like?
visualMap新增一种维度,就是跟据点的密度进行展示。 dimension
@baight It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
How to draw a scatter density plot
BODY
What problem does this feature solve?
I want to draw a scatter point density chart, that is, the color of the points will change according to the density program of the stronghold, as shown below:
It's much like a visualMap, where the dimensions are the density of points. I can't find a way to draw a scatter density plot in echarts.
What does the proposed API look like?
A new dimension of visualMap is to display based on the density of strongholds. dimension
looks like heatmap
duplicate of #17177 I see the problem now - heatmap behaves differently depending on the coordinate system used.
- Heatmap with coordinateSystem:'geo' has attributes pointSize and blurSize and automatically changes colors depending on density of points. Density changes on zoom in/out. official example
- Heatmap with coordinateSystem:'cartesian2d' OTOH shows only colors matching the points values. Density does not matter when zooming in/out and no colors are changed. official example
So this is indeed a new feature proposal - to make cartesian2d behave like geo.