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

Can't find variable: Highcharts #1560

Open
welken opened this issue Aug 7, 2024 · 1 comment
Open

Can't find variable: Highcharts #1560

welken opened this issue Aug 7, 2024 · 1 comment

Comments

@welken
Copy link

welken commented Aug 7, 2024

code:
let aaChartModel = AAChartModel()
.chartType(.areaspline)
.margin([kScaleValue(0), kScaleValue(16), kScaleValue(0), kScaleValue(16)]) // 设置边距(上、右、下、左)
.animationType(.easeFrom)//设置图表渲染动画类型为 EaseFrom
// .yAxisMin(6) // 设置 Y 轴最小值为 0
.dataLabelsEnabled(false)
.legendEnabled(false) // 隐藏图例
.markerRadius(0) // 隐藏数据点
.categories(timeArray)
.series([
AASeriesElement()
.enableMouseTracking(false)
.data(voltageArray)
.lineWidth(2)
.fillColor([
"linearGradient": [
"x1": 0,
"y1": 1,
"x2": 0,
"y2": 0
],
"stops": [
[0, "rgba(255,255,255,0.05)"],
[1, "rgba(38,98,240,0.1)"]
]
])

        ])

    let aaOptions = aaChartModel.aa_toAAOptions()
    
    aaOptions.xAxis?
        .visible(false)

    // 配置 Y 轴
    let aaYAxis = AAYAxis()
        .visible(false)
        .min(5)

    aaOptions.yAxis(aaYAxis)
    
    let aaTooltip = AATooltip()
        .enabled(false) // 隐藏工具提示
    
    aaOptions.tooltip(aaTooltip)

    
    chartView.aa_drawChartWithChartOptions(aaOptions)
   error:

☠️☠️💀☠️☠️WARNING!!!!!!!!!!!!!!!!!!!! FBI WARNING !!!!!!!!!!!!!!!!!!!!WARNING☠️☠️💀☠️☠️


code = 4;
domain = WKErrorDomain;
userInfo = {
NSLocalizedDescription = "A JavaScript exception occurred";
WKJavaScriptExceptionColumnNumber = 43;
WKJavaScriptExceptionLineNumber = 58;
WKJavaScriptExceptionMessage = ReferenceError: Can't find variable: Highcharts;
WKJavaScriptExceptionSourceURL = file:///var/containers/Bundle/Application/DA111DF6-43C9-4F81-90F2-7F408AD2FFC9/SuichebaoiOS.app/Frameworks/AAInfographics.framework/AAJSFiles.bundle/AAChartView.html;
}

==========================================================================================
☠️☠️💀☠️☠️WARNING!!!!!!!!!!!!!!!!!!!! FBI WARNING !!!!!!!!!!!!!!!!!!!!WARNING☠️☠️💀☠️☠️

@yuweicl
Copy link

yuweicl commented Nov 26, 2024

我也遇到了,请问解决了吗?

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

No branches or pull requests

2 participants