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

ZoomButton 隐藏的问题 #1435

Closed
Suzhibin opened this issue Dec 29, 2022 · 4 comments
Closed

ZoomButton 隐藏的问题 #1435

Suzhibin opened this issue Dec 29, 2022 · 4 comments
Labels

Comments

@Suzhibin
Copy link

Suzhibin commented Dec 29, 2022

以下代码 配置 无法隐藏 缩放按钮,还有新的方法吗

    aaOptions.chart
    .resetZoomButtonSet(AAResetZoomButton.new
                        .themeSet(@{
                            @"display":@"none"//隐藏图表缩放后的默认显示的缩放按钮
                                  }));
@AAChartModel
Copy link
Owner

@AAChartModel
Copy link
Owner

参考官方 API: https://api.highcharts.com/highcharts/chart.resetZoomButton.theme

此 API 已被标记为Deprecated 10.2.1 废弃.

@AAChartModel
Copy link
Owner

参考: https://www.highcharts.com/forum/viewtopic.php?f=9&t=46196

通过官方论坛给出的回复示例来看, 最新的配置方式如下:

    aaOptions.chart
    .resetZoomButtonSet(AAResetZoomButton.new
                        .themeSet(@{
                            @"style": @{
                                @"display":@"none"//隐藏图表缩放后的默认显示的缩放按钮
                            }
                        }));

@Suzhibin
Copy link
Author

参考: https://www.highcharts.com/forum/viewtopic.php?f=9&t=46196

通过官方论坛给出的回复示例来看, 最新的配置方式如下:

    aaOptions.chart
    .resetZoomButtonSet(AAResetZoomButton.new
                        .themeSet(@{
                            @"style": @{
                                @"display":@"none"//隐藏图表缩放后的默认显示的缩放按钮
                            }
                        }));

好使,太感谢了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants