0.2.12 • Published 2 years ago

miyi v0.2.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

简体中文 | English

ThemeSet is an online tool theme configs generator.

💡 How to use

G2 提供了自定义主题机制以允许用户切换、定义图表主题。利用 ThemeSet 工具,工程师或者设计师可以在线设计图表通用主题规范,然后导出或复制主题配置,直接使用 registerTheme API 进行主题定制。

Use in G2. More details in 自定义主题 | G2

import { registerTheme } from '@antv/g2';

// method 1:
registerTheme('newTheme', {
  // Theme configs exported of copied
});
chart.theme('newTheme');

// method 2:
chart.theme({
  // Theme configs exported of copied
});

Use in G2Plot. More details in 图表主题 | G2Plot

import { G2, Line } from '@antv/g2plot';

// method 1:
G2.registerTheme('newTheme', {
  // Theme configs exported of copied
});
const plot = new Line({
  // ... other configurations of Line plot
  theme: 'newTheme',
});
// or
plot.update({ theme: 'newTheme' });

// method 2:
const plot = new Line({
  // ... 折线图的其他配置
  theme: {
    // Theme configs exported of copied
  },
});
// 或者
plot.update({
  theme: {
    // Theme configs exported of copied
  },
});

⌨️ Contribute

# Clone repository
git clone git@github.com:antvis/theme-set.git

# Enter file dir
cd theme-set

# Install dependencies and start
npm install && npm start

# Open website: http://localhost:8000

📧 Contact us

DingTalk Group: 30233731

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.1.30

2 years ago

0.1.29

2 years ago

0.1.28

2 years ago

0.1.27

2 years ago

0.1.26

2 years ago

0.1.25

2 years ago

0.1.24

2 years ago

0.1.23

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago