SfCartesianChart Title binding issue

Hi all,

Seems that title binding is not working properly, can you check please?

thanks


  <chart:SfCartesianChart.Title>

      <chart:ChartAxisTitle Text="{Binding Title}"  TextColor="{DynamicResource BackgroundColor}" Background="Transparent" Stroke="Transparent"/>

  </chart:SfCartesianChart.Title>


3 Replies

NT Nitheeshkumar Thangaraj Syncfusion Team July 8, 2024 07:17 AM UTC

Hi Luca,

Thank you for reaching out. For better understanding, we want to clarify that we don't provide a class member for the chart title directly. Instead, you can use any view inside the title. Here's an example for your reference:

 

<chart:SfCartesianChart>
   <chart:SfCartesianChart.Title>
      <Label Text="{Binding Title}" TextColor="{DynamicResource BackgroundColor}" Background="Transparent" Stroke="Transparent"/>
   </chart:SfCartesianChart.Title>
</chart:SfCartesianChart>


For more information, please check the documentation: Chart Title Documentation.

If you need further assistance or have any concerns, feel free to ask. We're here to help.

Regards,

Nitheesh.



LU Luca July 8, 2024 09:45 AM UTC

Hi,

thanks a lot it works!



PR Preethi Rajakandham Syncfusion Team July 9, 2024 05:01 AM UTC

Hi Luca,

You're welcome. 

We are glad that the provided response meets your requirement. Please let us know if you need further assistance. As always, we are happy to help you out.

Regards,

Preethi R


Loader.
Up arrow icon