highcharts-angular (width angular 19) - How setup system theme?

Discussão em 'Angular' iniciado por Juan Carlos Delgado, Abril 11, 2025.

  1. I have an ionic project with angular, and when refactoring to use the latest versions of ionic, angular 19 standalone and highcharts, it started giving me errors when using functions like theme.

    import * as Highcharts from 'highcharts/highcharts';
    import theme from 'highcharts/themes/dark-unica';

    if (this.utilidades.darkMode()) {
    theme(Highcharts);
    }




    The call to theme(Highcharts) causes an error of the type:

    TypeError: theme is not a function.


    Is it no longer possible to dynamically initialize dark mode dark-unica?

    Is there a specific theme for charts to use device theme (dark or light) itself?

    Continue reading...

Compartilhe esta Página