Skip to content

JavaScript Exception #1

@kutran

Description

@kutran

Getting this error while running the sample app, any ideas?

addJSMessageHandlersInUserController
loadThemeScriptInUserController
loadChartScriptInUserController
loadContainerPage()
renderChart('container',{
"yAxisTitle" : "Population (in millions) ",
"titleText" : "Most Populated Countries in the World (2016)",
"xCategories" : [
"China",
"India",
"United States",
"Indonesia",
"Brazil"
],
"dataLabelFormat" : " {point.y} ",
"ylabelFormat" : "{value} mm",
"type" : "column",
"xAxisTitle" : "Country "
},[
{
"name" : "China",
"y" : 1378
},
{
"name" : "India",
"y" : 1266
},
{
"name" : "United States",
"y" : 323
},
{
"name" : "Indonesia",
"y" : 258
}
],true,false)
(nil, nil)
renderChart('container',{
"yAxisTitle" : "%",
"titleText" : "Population / Age Group",
"xCategories" : [
"0-14",
"15-24",
"25-54",
"55-64",
"> 65"
],
"dataLabelFormat" : " {point.y}%",
"ylabelFormat" : "{value}%",
"type" : "pie",
"xAxisTitle" : "Age Group"
},[
[
"0-14 years",
27.71
],
[
"15-24 years",
17.99
],
[
"25-54 years",
40.91
],
[
"55-64 years",
7.3
],
[
"> 65 years",
6.09
]
],true,true)
(nil, Optional(Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'a.replace'), WKJavaScriptExceptionLineNumber=240, WKJavaScriptExceptionColumnNumber=489, NSLocalizedDescription=A JavaScript exception occurred, WKJavaScriptExceptionSourceURL=file:///Users/kutran/Library/Developer/CoreSimulator/Devices/72AAAAAE-5A6C-4D0D-966F-A0B660B2D20A/data/Containers/Bundle/Application/F750D73E-765F-4416-950C-B920E7765B27/ChartExample.app/highcharts.js}))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions