Easy function to invert chart

Hi

Current the default theme of the chart is light (white background) with black axis

Is there an easy function to call to invert the chart?

Like black background and white axis?

Hope to hear from you soon.


1 Reply

DP Dharanitharan Palanisamy Syncfusion Team August 12, 2021 01:04 PM UTC

Hi Peter, 
 
We have investigated your issue and can tell you that you can alter the theme by just changing the code snippet below to suit your needs. 
 
Code snippet 
MaterialApp( 
      title: 'App Title', 
      theme: ThemeData( 
        brightness: Brightness.light, 
        /* light theme settings */ 
      ), 
      darkTheme: ThemeData( 
        brightness: Brightness.dark, 
        /* dark theme settings */ 
      ), 
      themeMode: ThemeMode.dark,  
      /* ThemeMode.system to follow system theme,  
         ThemeMode.light for light theme,  
         ThemeMode.dark for dark theme 
      */ 
      debugShowCheckedModeBanner: false, 
      home: YourAppHomepage(), 
    ); 
 
The chart will render automatically based on the theme and you can also manually change the axis line, background color, or any other customization for a chart. For more information, kindly refer to the help document below. 
 
 
Please revert us if you need any further assistance on this. 
 
Thanks, 
Dharanitharan. P 


Loader.
Up arrow icon