1.10.4 • Published 1 month ago

@visactor/vchart-theme v1.10.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@visactor/vchart-theme

Description

The extension themes for VChart.

The list of themes included here is as follows, with links to the theme JSON files:

Usage

Import the full theme map and register them in sequence:

import { allThemeMap } from '@visactor/vchart-theme';
import VChart from '@visactor/vchart';

// register themes
allThemeMap.forEach((theme, name) => {
  VChart.ThemeManager.registerTheme(name, theme);
});

// apply a theme
VChart.ThemeManager.setCurrentTheme('vScreenVolcanoBlue');

If you only use a specific theme, you can also import the specific theme JSON from this package:

import vScreenVolcanoBlue from '@visactor/vchart-theme/public/vScreenVolcanoBlue.json';
import VChart from '@visactor/vchart';

// register the theme
VChart.ThemeManager.registerTheme('vScreenVolcanoBlue', vScreenVolcanoBlue);

// apply the theme
VChart.ThemeManager.setCurrentTheme('vScreenVolcanoBlue');

Debug

Run the following command from any location in the project to start the dev server:

rush theme
1.10.4

1 month ago

1.10.2

2 months ago

1.9.4

3 months ago

1.9.3

3 months ago

1.9.0

4 months ago

1.7.3

4 months ago

1.8.8

4 months ago

1.6.9

5 months ago

1.6.8

5 months ago

1.7.2

6 months ago

1.6.7

6 months ago

0.16.17-alpha.0

6 months ago

0.16.17-alpha.2

6 months ago

1.6.6

6 months ago

1.6.5

6 months ago

1.6.4

6 months ago

1.7.0-alpha.0

6 months ago

1.6.3

6 months ago

1.6.2

6 months ago

1.6.1

6 months ago

1.6.1-alpha.0

6 months ago

1.6.0-beta.0

6 months ago

1.6.0

6 months ago