WPF Modern UI Chart Xaml Chart Title style

Asked

Viewed 97 times

1

I have the chart below and would like to change the font size for the property Charttitle, if possible by xaml.

In the Chart class I can change the font size of the series through the Chart.Fontsize property, but I couldn’t find a method to change the Charttitle.

<chart:ClusteredColumnChart
    x:Name="chtComparativaAtual"
    Style="{StaticResource MinimalChartStyle}"
    ChartTitle="Evolução Comparativa (Atual)"  
    Background="White"
    Foreground="#444444"
    Grid.Row="1"    
    Grid.Column="1"
    Width="auto"
    Height="400"
    Palette="{StaticResource Cores}" 
    ChartSubTitle="" 
    ScrollViewer.HorizontalScrollBarVisibility="Visible"
    >
    <chart:ClusteredColumnChart.Resources>
        <Style TargetType="chart:ColumnPiece">
            <Setter 
            Property="Margin" 
            Value="4,0"
            />
        </Style>
    </chart:ClusteredColumnChart.Resources>

    <chart:ClusteredColumnChart.Series>
        <chart:ChartSeries
            x:Name="dcComparativaAtual"              
            DisplayMember="Categoria"
            ValueMember="Valor"
            Foreground="White"
            SeriesTitle="Pendências"
            Width="auto"
            />
    </chart:ClusteredColumnChart.Series>

</chart:ClusteredColumnChart>

Properties related to Charttitle:

chtComparativaAtual.ChartTitle
chtComparativaAtual.ChartTitleStyle

Charttitle: string Charttitlestyle: System.Windows.Style Chartbase.Charttitlestyle

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.