AAChartCore-Kotlin
AAChartCore-Kotlin copied to clipboard
Escaping string in kotlin causing Uncaught SyntaxError
dataList.add(AADataElement()
.name("Streaming")
.y(14f)
.dataLabels(dataLabelStyle.format("{point.name} </br> <b style=\"color:red\">{point.percentage:.0f}%</b>"))
)
this line prevent the chart fromm showing and will cause this error: I/chromium: [INFO:CONSOLE(1)] "Uncaught SyntaxError: Unexpected token c in JSON at position 612", source: file:///android_asset/AAChartView.html (1)
the same thing will happen if you run the demo app and try to open Custom Special Style DataLabel Of Single DataElementChart