I set a custom font in the app theme, but the charts ignore this font.
All fonts in the charts seem to be Roboto.
I tried to add TextStyle and LabelStyle to set my custom font.
but I haven't found how to define the tooltip or track point font.
How can I do this, and should the chart not just use the font specified in the theme by default?
fontFamily: 'Times New Roman',
For more details, refer to the ug:
If you still facing the issue, we kindly request you to share us with more about the issue in detail along with code snippets so that it will help us assist you in a better way.
I use TrackballBehavior
in the documentation it says:
that textStyle is an available property.
but when looking into the class:
that's why I don't know how to apply the font also in case using TrackBall.
Also, I wonder why not use ThemeFont by default.
Now I need to set the font manually, on every axis, legend, tooltip, (trackball?) title, etc.
To customize the trackball tooltip text style, you can achieve this with the help of textStyle property in a tooltipSettings in TrackballBehavior. We have shared the code snippet below for your reference.
fontFamily: 'Calibri (Body)',
Currently, we don't have a support textStyle in SfChartThemeData. However, we have considered this as a feature request and logged the feature request for it in our feedback portal. This will be implemented and included in our 2023 Volume 2 release, which is expected to be rolled out on June 2023. We shared the feedback link below for your reference, you can track the status of the feature.
great, thank you very much :)
Most Welcome. We will update you once the release got rolled out and we appreciate your patience until then.
We are glad to announce that our Essential Studio 2023 Volume 2 release v22.1.34 is rolled out and is available for download under the following link.
We have provided the global text theme support for charts widget and rolled out in this release. So, kindly please upgrade the charts widget package version to the latest version below to overcome the issue.
For more details, please refer the API details here https://pub.dev/documentation/syncfusion_flutter_core/latest/theme/SfChartThemeData-class.html
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.