Skip to content

Commit 14a44c2

Browse files
committed
Upgrade VuePress (1.x) and other dependencies
1 parent e1347fc commit 14a44c2

10 files changed

Lines changed: 14586 additions & 17 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ cc-test-reporter
55
coverage/
66
dist/
77
node_modules/
8-
package-lock.json
98
*.stackdump

docs/.vuepress/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
module.exports = {
22
title: 'chartjs-plugin-datalabels',
33
description: 'Display labels on data for any type of charts.',
4-
ga: 'UA-99068522-2',
54
head: [
65
['link', { rel: 'icon', href: `/favicon.png` }],
76
],
7+
plugins: [
8+
['@vuepress/google-analytics', {
9+
ga: 'UA-99068522-2'
10+
}]
11+
],
812
themeConfig: {
913
repo: 'chartjs/chartjs-plugin-datalabels',
1014
logo: '/favicon.png',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'override.styl'
1+
@import 'palette.styl'
22

33
a
44
svg.icon.outbound

docs/guide/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This plugin currently supports the following label events:
88
| `leave` | `mousemove` | the mouse is moved out of a label
99
| `click` | `click` | the mouse's primary button is pressed and released on a label
1010

11-
::: tip NOTE
11+
::: tip
1212
<sup>1</sup> [Chart.js events](http://www.chartjs.org/docs/latest/general/interactions/events.html) that need to be enabled in order to get the associated label event working. Note that by default Chart.js enables `"mousemove", "mouseout", "click", "touchstart", "touchmove", "touchend"`, meaning that label events work out-of-the-box.
1313
:::
1414

docs/guide/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
npm install chartjs-plugin-datalabels --save
1111
```
1212

13-
::: tip NOTE
13+
::: tip
1414
This plugin can also be installed using [Bower](https://bower.io/).
1515
:::
1616

docs/guide/labels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Labels
22

3-
By default, a single label is created per data, however, it's possible to define multiple labels for each data element using the `labels` options. This option is an object where each property represents a new label, the key being the label key and the value being the options specific to each label. These options are merged on top of the options defined at the chart **and** dataset levels.
3+
By default, a single label is created per data, however, it's possible to define multiple labels for each data element using the `labels` option. This option is an object where each property represents a new label, the key being the label key and the value being the options specific to each label. These options are merged on top of the options defined at the chart **and** dataset levels.
44

55
## Multiple Labels
66

docs/guide/positioning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `clamp` option, when `true`, enforces the anchor position to be calculated b
1717

1818
![chartjs-plugin-datalabels](../assets/clamp.png)
1919

20-
::: tip NOTE
20+
::: tip
2121
If the element is fully hidden (i.e. entirely outside the chart area), anchor points will **not** be adjusted and thus will also be outside the viewport.
2222
:::
2323

@@ -65,7 +65,7 @@ The `display: 'auto'` option can be used to prevent overlapping labels, based on
6565
- if both labels are `display: 'auto'`, the one with the highest data index will be hidden. If labels are at the same data index, the one with the highest dataset index will be hidden
6666
- if one label is `display: true` and the other one is `display: 'auto'`, the one with `'auto'` will be hidden (whatever the data/dataset indices)
6767

68-
::: tip NOTE
68+
::: tip
6969
Labels with `display: false` don't contribute to the overlap detection.
7070
:::
7171

0 commit comments

Comments
 (0)