Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 数据量较大时Scatter3D组件的标签显示乱码 #403

Open
lwch opened this issue Feb 22, 2024 · 3 comments
Open

[Bug] 数据量较大时Scatter3D组件的标签显示乱码 #403

lwch opened this issue Feb 22, 2024 · 3 comments
Labels
bug Something isn't working need investigation Need investigation about this issue upstream/outside it seems out of our scope to do the thing

Comments

@lwch
Copy link

lwch commented Feb 22, 2024

Describe the issue

image

代码如下:

page := charts.NewScatter3D()
page.Initialization.Width = "100%"
page.Initialization.Height = "700px"
page.SetGlobalOptions(
charts.WithTitleOpts(opts.Title{Title: "embedding"}),
charts.WithTooltipOpts(opts.Tooltip{Show: true, Trigger: "item"}),
charts.WithVisualMapOpts(opts.VisualMap{
	Calculable: true,
	Max:        max,
	Min:        min,
	InRange:    &opts.VisualMapInRange{Color: colors},
}),
charts.WithLegendOpts(opts.Legend{Show: false}),
)
page.AddSeries("embedding", values)

添加数据时设置了label属性:

pt := opts.Chart3DData{
	Name: tokens[i/3],
	Value: []interface{}{
		data[i], data[i+1], data[i+2],
	},
	Label: &opts.Label{
		Show:      true,
		Formatter: "{b}",
	},
}

How to reproduce this issue

需要随机生成一些数据,不论怎么转动也无法正常显示

Other information

No response

go-echarts version

v2.3.3

@lwch lwch added the bug Something isn't working label Feb 22, 2024
@Koooooo-7 Koooooo-7 added the need investigation Need investigation about this issue label Feb 22, 2024
@Koooooo-7
Copy link
Member

Hi @lwch , 应该是echarts 在处理大数据的时候,有些问题。
我看到这个issue apache/echarts#14033 , 类似于scatter的配置large 参数目前3D还不支持。
......估计目前只能考虑减少一下向量data了。

@Koooooo-7 Koooooo-7 added the upstream/outside it seems out of our scope to do the thing label Feb 22, 2024
@lwch
Copy link
Author

lwch commented Feb 23, 2024

Hi @lwch , 应该是echarts 在处理大数据的时候,有些问题。 我看到这个issue apache/echarts#14033 , 类似于scatter的配置large 参数目前3D还不支持。 ......估计目前只能考虑减少一下向量data了。

我尝试了另外几台机器,苹果M2和AMD显卡台式机都没有出现问题,但在AMD集显的笔记本上出现了上面的问题,可能是AMD集显的渲染方式问题

@Koooooo-7
Copy link
Member

Koooooo-7 commented Feb 23, 2024

Hi @lwch , 应该是echarts 在处理大数据的时候,有些问题。 我看到这个issue apache/echarts#14033 , 类似于scatter的配置large 参数目前3D还不支持。 ......估计目前只能考虑减少一下向量data了。

我尝试了另外几台机器,苹果M2和AMD显卡台式机都没有出现问题,但在AMD集显的笔记本上出现了上面的问题,可能是AMD集显的渲染方式问题

Nice catch!
这个可能要promote到echarts那边去看看了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need investigation Need investigation about this issue upstream/outside it seems out of our scope to do the thing
Projects
None yet
Development

No branches or pull requests

2 participants