nativescript-community / ui-chart

A powerful chart / graph plugin, supporting line, bar, pie, radar, bubble, and candlestick charts as well as scaling, panning and animations.
https://nativescript-community.github.io/ui-chart/
Apache License 2.0
33 stars 12 forks source link

label.equals is not a function #39

Closed DiegoMacBD closed 2 years ago

DiegoMacBD commented 2 years ago

Summary

When calling the LineDataSet 'getDataSetByLabel' method, and sending the correct parameters, I get ERROR: UnhandledError TypeError: label.equals is not a function

Expected Behavior

Should return the dataset

Possible Solution

I think the code was just translated from java code and that part was missed to translate since equals is not a function on javascript strings.

Device (please complete the following information):

Additional Context

farfromrefug commented 2 years ago

@DiegoMacBD thanks for the report! fixed in 1.2.10