Skip to content

Update FontWeight for existing legend items #56

Description

@BigAl66

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions