Update FontWeight for existing legend items
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
Research direction
Start at chart.Plot.Legend.ManualItems and compare the existing LabelFontName and LabelFontSize properties with the legend-item implementation used by ScottPlot Avalonia 5.1.59. Determine how an existing legend item's font weight can be exposed or updated, then verify that setting the weight changes rendered legend labels without affecting the other font settings.
Written by the indexing model from the issue text.
Description
Hi,
I'm using ScottPlot Avalonia 5.1.59.
I need to update the FontWeight for existing legend items. I can update the FontName and the FontSize, but I cannot find FontWeight.
Here is what I expect:
foreach (var legendItem in chart.Plot.Legend.ManualItems)
{
legendItem.LabelFontName = FontManager.Current.DefaultFontFamily.Name;
legendItem.LabelFontSize = (float)defaultSize;
legendItem.LabelFontWeight = fontWeight;
}
LabelFontWeight was not found. How can I update the FontWeight?
I would appreciate a reply
Alex
- Dominant language
- HTML
- Stars
- 49
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ScottPlot/ScottPlot.NET
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
ScottPlot/ScottPlot.NET#54 ·
All issues in ScottPlot/ScottPlot.NET
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
Help-Wanted Package-Request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/winget-pkgs#438682 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
os:macos
Difficulty 2/5 1-3 hours Newbie friendliness 78/100