hexo-tag-chart
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -15,3 +15,3 @@ const fs = require('fs'), | ||
option: options, | ||
width: args[0] || 400, | ||
width: args[0] || '100%', | ||
height: args[1] || 300 | ||
@@ -18,0 +18,0 @@ }); |
{ | ||
"name": "hexo-tag-chart", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A simple plugin for inserting Chartjs by using tags in Hexo.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# hexo-tag-chart | ||
![npm](https://img.shields.io/npm/v/hexo-tag-chart) | ||
![npm](https://img.shields.io/npm/dt/hexo-tag-chart) | ||
@@ -21,6 +22,11 @@ Insert [Chartjs](https://www.chartjs.org/) in Hexo site by using tags. | ||
| Name | Type | Default | Description | | ||
| ---- | ---- | ---- | ---- | | ||
| width | decimal | 100% | The width of chart, responsive in window. | | ||
| height | number | 300 | The height of chart (px). | | ||
## Example | ||
``` | ||
{% chart 400 300 %} | ||
{% chart 80% 300 %} | ||
{ | ||
@@ -27,0 +33,0 @@ type: 'line', |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3844
51