Search code examples
c#xamarinxamarin.formssyncfusion

How to increase Synfusion graph values sizes?


I have Syncfusion line Spline graph in Xamarin Forms:

<chart:SfChart>
<chart:SplineSeries
           ItemsSource="{Binding SymptomDates}"
           XBindingPath="Date"
           YBindingPath="Severity">
</chart:SplineSeries>
</chart:SfChart>

How do I increase label sizes?

enter image description here


Solution

  • As Jason hinted, to increase the size of the label, you can customize the FontSize="25" of the property ChartAxisLabelStyle like below:

    <chart:SfChart> 
    
           <chart:SfChart.PrimaryAxis>
    
                 <chart:CategoryAxis>
    
                      <chart:CategoryAxis.LabelStyle>
                           <chart:ChartAxisLabelStyle FontSize="25"/>
    
                      </chart:CategoryAxis.LabelStyle>
    
                 </chart:CategoryAxis>
    
            </chart:SfChart.PrimaryAxis>
           
    </chart:SfChart>