create-vuepress-theme-hope 2.0.0-beta.11 → 2.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.0.0-beta.12](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.11...v2.0.0-beta.12) (2022-03-12)
7
+
8
+ ### Features
9
+
10
+ - **md-enhance:** new `chart` optoin ([6742945](https://github.com/vuepress-theme-hope/vuepress-theme-hope/commit/6742945d802e21babb1f3b2b1dfc797c7bd17877))
11
+
6
12
  # [2.0.0-beta.11](https://github.com/vuepress-theme-hope/vuepress-theme-hope/compare/v2.0.0-beta.10...v2.0.0-beta.11) (2022-03-12)
7
13
 
8
14
  **Note:** Version bump only for package create-vuepress-theme-hope
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "2.0.0-beta.11",
3
+ "version": "2.0.0-beta.12",
4
4
  "description": "Create vuepress-theme-hope demo project helper",
5
5
  "keywords": [
6
6
  "create",
@@ -37,5 +37,5 @@
37
37
  "execa": "^5.1.1",
38
38
  "inquirer": "^8.2.1"
39
39
  },
40
- "gitHead": "df5c5457255e990dd961ef3fa52dc4ea85071b4e"
40
+ "gitHead": "d7282665ad541f61c596aba3de70788a4a52a43f"
41
41
  }
@@ -201,6 +201,42 @@ You can mark ==important words== .
201
201
 
202
202
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
203
203
 
204
+ ### Chart
205
+
206
+ ::: chart A Scatter Chart
207
+
208
+ ```json
209
+ {
210
+ "type": "scatter",
211
+ "data": {
212
+ "datasets": [
213
+ {
214
+ "label": "Scatter Dataset",
215
+ "data": [
216
+ { "x": -10, "y": 0 },
217
+ { "x": 0, "y": 10 },
218
+ { "x": 10, "y": 5 },
219
+ { "x": 0.5, "y": 5.5 }
220
+ ],
221
+ "backgroundColor": "rgb(255, 99, 132)"
222
+ }
223
+ ]
224
+ },
225
+ "options": {
226
+ "scales": {
227
+ "x": {
228
+ "type": "linear",
229
+ "position": "bottom"
230
+ }
231
+ }
232
+ }
233
+ }
234
+ ```
235
+
236
+ :::
237
+
238
+ - [View Detail](<[chart.md](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)>)
239
+
204
240
  ### Flowchart
205
241
 
206
242
  ```flow
@@ -201,6 +201,42 @@ You can mark ==important words== .
201
201
 
202
202
  - [View Detail](https://vuepress-theme-hope.github.io/v2/guide/markdown/tasklist.html)
203
203
 
204
+ ### Chart
205
+
206
+ ::: chart A Scatter Chart
207
+
208
+ ```json
209
+ {
210
+ "type": "scatter",
211
+ "data": {
212
+ "datasets": [
213
+ {
214
+ "label": "Scatter Dataset",
215
+ "data": [
216
+ { "x": -10, "y": 0 },
217
+ { "x": 0, "y": 10 },
218
+ { "x": 10, "y": 5 },
219
+ { "x": 0.5, "y": 5.5 }
220
+ ],
221
+ "backgroundColor": "rgb(255, 99, 132)"
222
+ }
223
+ ]
224
+ },
225
+ "options": {
226
+ "scales": {
227
+ "x": {
228
+ "type": "linear",
229
+ "position": "bottom"
230
+ }
231
+ }
232
+ }
233
+ }
234
+ ```
235
+
236
+ :::
237
+
238
+ - [View Detail](<[chart.md](https://vuepress-theme-hope.github.io/v2/guide/markdown/chart.html)>)
239
+
204
240
  ### Flowchart
205
241
 
206
242
  ```flow
@@ -199,6 +199,42 @@ npm i -D vuepress-theme-hope
199
199
 
200
200
  - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/tasklist.html)
201
201
 
202
+ ### 图表
203
+
204
+ ::: chart 一个散点图案例
205
+
206
+ ```json
207
+ {
208
+ "type": "scatter",
209
+ "data": {
210
+ "datasets": [
211
+ {
212
+ "label": "散点数据集",
213
+ "data": [
214
+ { "x": -10, "y": 0 },
215
+ { "x": 0, "y": 10 },
216
+ { "x": 10, "y": 5 },
217
+ { "x": 0.5, "y": 5.5 }
218
+ ],
219
+ "backgroundColor": "rgb(255, 99, 132)"
220
+ }
221
+ ]
222
+ },
223
+ "options": {
224
+ "scales": {
225
+ "x": {
226
+ "type": "linear",
227
+ "position": "bottom"
228
+ }
229
+ }
230
+ }
231
+ }
232
+ ```
233
+
234
+ :::
235
+
236
+ - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/chart.html)
237
+
202
238
  ### 流程图
203
239
 
204
240
  ```flow
@@ -199,6 +199,42 @@ npm i -D vuepress-theme-hope
199
199
 
200
200
  - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/tasklist.html)
201
201
 
202
+ ### 图表
203
+
204
+ ::: chart 一个散点图案例
205
+
206
+ ```json
207
+ {
208
+ "type": "scatter",
209
+ "data": {
210
+ "datasets": [
211
+ {
212
+ "label": "散点数据集",
213
+ "data": [
214
+ { "x": -10, "y": 0 },
215
+ { "x": 0, "y": 10 },
216
+ { "x": 10, "y": 5 },
217
+ { "x": 0.5, "y": 5.5 }
218
+ ],
219
+ "backgroundColor": "rgb(255, 99, 132)"
220
+ }
221
+ ]
222
+ },
223
+ "options": {
224
+ "scales": {
225
+ "x": {
226
+ "type": "linear",
227
+ "position": "bottom"
228
+ }
229
+ }
230
+ }
231
+ }
232
+ ```
233
+
234
+ :::
235
+
236
+ - [查看详情](https://vuepress-theme-hope.github.io/v2/zh/guide/markdown/chart.html)
237
+
202
238
  ### 流程图
203
239
 
204
240
  ```flow