Update FontWeight for existing legend items

Abierto
#56 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
62/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
HTML
Estrellas
49
Forks
43
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ScottPlot/ScottPlot.NET

Todos los issues de ScottPlot/ScottPlot.NET

Issues similares

Más issues de Desktop Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.