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
34 stars 12 forks source link

Legend font weight is stuck on bold since v1.2.0 #37

Closed rbudnar closed 3 years ago

rbudnar commented 3 years ago

Summary

Prior to version 1.2.0 (I was on v1.1.42), I was able to customize the legend font's weight. I set it to extra light with the following call:

const legend = this.chart.getLegend();
legend.setFont(new Font("serif", 10, FontStyle.ITALIC, FontWeight.EXTRA_LIGHT));

When I upgraded to 1.2.0 (and also 1.2.2), font weight is no longer respected. Font size and families generally work as expected, though.

Prior to upgrade: image After upgrade, no code changes: image None of the FontWeight values make any difference in the output with library version 1.2.0.

Expected Behavior Font weight should be respected.

Possible Solution

Device (please complete the following information):

Additional Context I haven't had time to dig into the source yet but will try to later if I have time.

farfromrefug commented 3 years ago

@rbudnar thanks for the report. fixed in 1.2.3

rbudnar commented 3 years ago

@farfromrefug Thanks so much for the quick turn around on this, looks like its working great - I appreciate all the work you do with your plugins!