AAChartCore-Kotlin icon indicating copy to clipboard operation
AAChartCore-Kotlin copied to clipboard

Escaping string in kotlin causing Uncaught SyntaxError

Open khmaies5 opened this issue 2 years ago β€’ 0 comments

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

khmaies5 avatar May 17 '22 10:05 khmaies5