You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let me start by saying I appreciate the library! It's been great to work with.
I had a question regarding adjusting the height of the ChartLegend (when in one of the bottom positions). In the Demo project's "Line Chart 2 Chart", by default the legend looks like this:
I've been looking for an API to adjust the space set aside for the legend. I saw that the ChartLegend has a property yOffset. When changing the default value from 6.0 to something like 20.0, you get this:
This moved the legend up 20 points (which would be expected based on the name), but didn't actually change the space used for the legend. I'd like to be able to move the legend closer and/or adjust the space allowed for the legend so as to not have unnecessary space. It appears the height for a ChartLegend is calculated in the BarLineChartViewBase on line 338 where it is set to 3 times the line height, which makes for a good visual default, but it not customizable.
I'd like to add something to API so I can configure it the way I want, but before doing so, was wondering if this is something you would be interested in seeing? If so, do you think an additional property on the ChartLegend itself is the appropriate place? Or something on BarLineChartViewBase itself?
The text was updated successfully, but these errors were encountered:
Let me start by saying I appreciate the library! It's been great to work with.
I had a question regarding adjusting the height of the
ChartLegend
(when in one of the bottom positions). In the Demo project's "Line Chart 2 Chart", by default the legend looks like this:I've been looking for an API to adjust the space set aside for the legend. I saw that the
ChartLegend
has a propertyyOffset
. When changing the default value from 6.0 to something like 20.0, you get this:This moved the legend up 20 points (which would be expected based on the name), but didn't actually change the space used for the legend. I'd like to be able to move the legend closer and/or adjust the space allowed for the legend so as to not have unnecessary space. It appears the height for a
ChartLegend
is calculated in theBarLineChartViewBase
on line 338 where it is set to 3 times the line height, which makes for a good visual default, but it not customizable.I'd like to add something to API so I can configure it the way I want, but before doing so, was wondering if this is something you would be interested in seeing? If so, do you think an additional property on the
ChartLegend
itself is the appropriate place? Or something onBarLineChartViewBase
itself?The text was updated successfully, but these errors were encountered: