Skip to content

Commit

Permalink
Bump version to 2.0.0 (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix authored Jun 19, 2021
1 parent d052f8f commit 306b347
Show file tree
Hide file tree
Showing 15 changed files with 232 additions and 232 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# chartjs-plugin-streaming

[![npm](https://img.shields.io/npm/v/chartjs-plugin-streaming/latest.svg?style=flat-square)](https://npmjs.com/package/chartjs-plugin-streaming) [![npm](https://img.shields.io/npm/v/chartjs-plugin-streaming/next.svg?style=flat-square)](https://npmjs.com/package/chartjs-plugin-streaming) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/nagix/chartjs-plugin-streaming/CI?style=flat-square)](https://github.com/nagix/chartjs-plugin-streaming/actions?query=workflow%3ACI+branch%3Amaster) [![Code Climate](https://img.shields.io/codeclimate/maintainability/nagix/chartjs-plugin-streaming.svg?style=flat-square)](https://codeclimate.com/github/nagix/chartjs-plugin-streaming) [![Awesome](https://awesome.re/badge-flat2.svg)](https://github.com/chartjs/awesome)
[![npm](https://img.shields.io/npm/v/chartjs-plugin-streaming.svg?style=flat-square)](https://npmjs.com/package/chartjs-plugin-streaming) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/nagix/chartjs-plugin-streaming/CI?style=flat-square)](https://github.com/nagix/chartjs-plugin-streaming/actions?query=workflow%3ACI+branch%3Amaster) [![Code Climate](https://img.shields.io/codeclimate/maintainability/nagix/chartjs-plugin-streaming.svg?style=flat-square)](https://codeclimate.com/github/nagix/chartjs-plugin-streaming) [![Awesome](https://awesome.re/badge-flat2.svg)](https://github.com/chartjs/awesome)

*[Chart.js](https://www.chartjs.org) plugin for live streaming data*

Expand Down
13 changes: 6 additions & 7 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

### npm

[![npm](https://img.shields.io/npm/v/chartjs-plugin-streaming/next.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-streaming) [![npm downloads](https://img.shields.io/npm/dm/chartjs-plugin-streaming.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-streaming)
[![npm](https://img.shields.io/npm/v/chartjs-plugin-streaming.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-streaming) [![npm downloads](https://img.shields.io/npm/dm/chartjs-plugin-streaming.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-streaming)

```sh
npm install chartjs-plugin-streaming@next --save
npm install chartjs-plugin-streaming --save
```

::: tip
Expand All @@ -16,12 +16,11 @@ This plugin can also be installed using [Bower](https://bower.io/).

### CDN

[![jsdelivr](https://img.shields.io/npm/v/chartjs-plugin-streaming/next.svg?label=jsdelivr&style=flat-square&maxAge=600)](https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@next/dist/) [![jsdelivr hits](https://data.jsdelivr.com/v1/package/npm/chartjs-plugin-streaming/badge)](https://www.jsdelivr.com/package/npm/chartjs-plugin-streaming)
[![jsdelivr](https://img.shields.io/npm/v/chartjs-plugin-streaming.svg?label=jsdelivr&style=flat-square&maxAge=600)](https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@latest/dist/) [![jsdelivr hits](https://data.jsdelivr.com/v1/package/npm/chartjs-plugin-streaming/badge)](https://www.jsdelivr.com/package/npm/chartjs-plugin-streaming)

By default, `https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming` returns the latest (minified) version, however it's [**highly recommended**](https://www.jsdelivr.com/features) to always specify a version in order to avoid breaking changes. This can be achieved by appending `@{version}` to the url:

```
https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@next // pre-release version
https://cdn.jsdelivr.net/npm/[email protected] // exact version
https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@2 // latest 2.x.x
```
Expand All @@ -30,9 +29,9 @@ Read more about jsDeliver versioning on their [website](http://www.jsdelivr.com/

### Download

[![github](https://img.shields.io/github/release/nagix/chartjs-plugin-streaming.svg?include_prereleases&sort=semver&style=flat-square&maxAge=600)](https://github.com/nagix/chartjs-plugin-streaming/releases/latest) [![github downloads](https://img.shields.io/github/downloads/nagix/chartjs-plugin-streaming/total.svg?style=flat-square&maxAge=600)](http://www.somsubhra.com/github-release-stats/?username=nagix&repository=chartjs-plugin-streaming)
[![github](https://img.shields.io/github/release/nagix/chartjs-plugin-streaming.svg?style=flat-square&maxAge=600)](https://github.com/nagix/chartjs-plugin-streaming/releases/latest) [![github downloads](https://img.shields.io/github/downloads/nagix/chartjs-plugin-streaming/total.svg?style=flat-square&maxAge=600)](http://www.somsubhra.com/github-release-stats/?username=nagix&repository=chartjs-plugin-streaming)

You can download the latest version of `chartjs-plugin-streaming` from the [GitHub Releases](https://github.com/nagix/chartjs-plugin-streaming/releases):
You can download the latest version of `chartjs-plugin-streaming` from the [GitHub Releases](https://github.com/nagix/chartjs-plugin-streaming/releases/latest):

- `chartjs-plugin-streaming.js` (recommended for development)
- `chartjs-plugin-streaming.min.js` (recommended for production)
Expand All @@ -48,7 +47,7 @@ You can download the latest version of `chartjs-plugin-streaming` from the [GitH
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@next"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@2.0.0"></script>
```

::: warning IMPORTANT
Expand Down
13 changes: 6 additions & 7 deletions docs/ja/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

### npm

[![npm](https://img.shields.io/npm/v/chartjs-plugin-streaming/next.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-streaming) [![npm downloads](https://img.shields.io/npm/dm/chartjs-plugin-streaming.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-streaming)
[![npm](https://img.shields.io/npm/v/chartjs-plugin-streaming.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-streaming) [![npm downloads](https://img.shields.io/npm/dm/chartjs-plugin-streaming.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-streaming)

```sh
npm install chartjs-plugin-streaming@next --save
npm install chartjs-plugin-streaming --save
```

::: tip 補足
Expand All @@ -16,12 +16,11 @@ npm install chartjs-plugin-streaming@next --save

### CDN

[![jsdelivr](https://img.shields.io/npm/v/chartjs-plugin-streaming/next.svg?label=jsdelivr&style=flat-square&maxAge=600)](https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@next/dist/) [![jsdelivr hits](https://data.jsdelivr.com/v1/package/npm/chartjs-plugin-streaming/badge)](https://www.jsdelivr.com/package/npm/chartjs-plugin-streaming)
[![jsdelivr](https://img.shields.io/npm/v/chartjs-plugin-streaming.svg?label=jsdelivr&style=flat-square&maxAge=600)](https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@latest/dist/) [![jsdelivr hits](https://data.jsdelivr.com/v1/package/npm/chartjs-plugin-streaming/badge)](https://www.jsdelivr.com/package/npm/chartjs-plugin-streaming)

デフォルトでは、`https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming` は最新の(圧縮された)バージョンを返しますが、互換性を損なう変更を避けるために、常にバージョンを指定することを[**強くお勧めします**](https://www.jsdelivr.com/features)。これは、URL に `@{version}` を追加することで実現できます。

```
https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@next // プレリリースバージョン
https://cdn.jsdelivr.net/npm/[email protected] // 厳密なバージョン
https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@2 // 最新の 2.x.x
```
Expand All @@ -30,9 +29,9 @@ jsDeliver のバージョニングについては、同サービスの[ウェブ

### ダウンロード

[![github](https://img.shields.io/github/release/nagix/chartjs-plugin-streaming.svg?include_prereleases&sort=semver&style=flat-square&maxAge=600)](https://github.com/nagix/chartjs-plugin-streaming/releases/latest) [![github downloads](https://img.shields.io/github/downloads/nagix/chartjs-plugin-streaming/total.svg?style=flat-square&maxAge=600)](http://www.somsubhra.com/github-release-stats/?username=nagix&repository=chartjs-plugin-streaming)
[![github](https://img.shields.io/github/release/nagix/chartjs-plugin-streaming.svg?style=flat-square&maxAge=600)](https://github.com/nagix/chartjs-plugin-streaming/releases/latest) [![github downloads](https://img.shields.io/github/downloads/nagix/chartjs-plugin-streaming/total.svg?style=flat-square&maxAge=600)](http://www.somsubhra.com/github-release-stats/?username=nagix&repository=chartjs-plugin-streaming)

最新版の `chartjs-plugin-streaming` は、[GitHub Releases](https://github.com/nagix/chartjs-plugin-streaming/releases)からダウンロードできます。
最新版の `chartjs-plugin-streaming` は、[GitHub Releases](https://github.com/nagix/chartjs-plugin-streaming/releases/latest)からダウンロードできます。

- `chartjs-plugin-streaming.js`(開発向けに推奨)
- `chartjs-plugin-streaming.min.js`(製品向けに推奨)
Expand All @@ -48,7 +47,7 @@ jsDeliver のバージョニングについては、同サービスの[ウェブ
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@next"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@2.0.0"></script>
```

::: warning 重要
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/tutorials/angular/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
[ng2-charts](https://valor-software.com/ng2-charts/)[Luxon](https://moment.github.io/luxon/)[chartjs-adapter-luxon](https://github.com/chartjs/chartjs-adapter-luxon)[chartjs-plugin-streaming](https://nagix.github.io/chartjs-plugin-streaming/) をプロジェクトにインストールします。

```bash
$ npm install ng2-charts@next luxon chartjs-adapter-luxon chartjs-plugin-streaming@next --save
$ npm install ng2-charts@next luxon chartjs-adapter-luxon chartjs-plugin-streaming --save
```
2 changes: 1 addition & 1 deletion docs/ja/tutorials/plainjs/scripts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# スクリプトを含める

まず [Chart.js](https://github.com/chartjs/Chart.js/releases/latest)[Luxon](https://moment.github.io/luxon/)[chartjs-adapter-luxon](https://github.com/chartjs/chartjs-adapter-luxon/releases/latest)[chartjs-plugin-streaming](https://github.com/nagix/chartjs-plugin-streaming/releases) をページに含める必要があります。
まず [Chart.js](https://github.com/chartjs/Chart.js/releases/latest)[Luxon](https://moment.github.io/luxon/)[chartjs-adapter-luxon](https://github.com/chartjs/chartjs-adapter-luxon/releases/latest)[chartjs-plugin-streaming](https://github.com/nagix/chartjs-plugin-streaming/releases/latest) をページに含める必要があります。

```html
<script src="path/to/chartjs/dist/chart.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/tutorials/react/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
[Chart.js](https://www.chartjs.org)[react-chartjs-2](http://reactchartjs.github.io/react-chartjs-2/), [Luxon](https://moment.github.io/luxon/)[chartjs-adapter-luxon](https://github.com/chartjs/chartjs-adapter-luxon)[chartjs-plugin-streaming](https://nagix.github.io/chartjs-plugin-streaming/) をプロジェクトにインストールします。

```bash
$ npm install chart.js react-chartjs-2 luxon chartjs-adapter-luxon chartjs-plugin-streaming@next --save
$ npm install chart.js react-chartjs-2 luxon chartjs-adapter-luxon chartjs-plugin-streaming --save
```
4 changes: 2 additions & 2 deletions docs/ja/tutorials/vue/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
[Chart.js](https://www.chartjs.org)[vue-chartjs](https://vue-chartjs.org/)[chartjs-plugin-streaming](https://nagix.github.io/chartjs-plugin-streaming/) をプロジェクトにインストールします。

```bash
$ npm install chart.js@2 vue-chartjs chartjs-plugin-streaming --save
$ npm install chart.js@2 vue-chartjs chartjs-plugin-streaming@1 --save
```

::: warning 注意事項
現在、vue-chartjs は Chart.js 2.x のみをサポートしており、3.x はサポートしていません。そのため、Chart.js 2.x を明示的にインストールする必要があります。
現在、vue-chartjs は Chart.js 2.x のみをサポートしており、3.x はサポートしていません。そのため、Chart.js 2.x および chartjs-plugin-streaming 1.x を明示的にインストールする必要があります。
:::
2 changes: 1 addition & 1 deletion docs/ja/tutorials/vue/stream.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# データを流し込む

コールバック関数でデータを追加し、様々なチャートオプションを指定することができます。ブラウザは自動更新され、ストリーミングチャートが表示されます。カスタマイズのオプションについては Chart.js の[ドキュメント](https://www.chartjs.org/docs/2.8.0)[サンプル](https://www.chartjs.org/samples)、vue-chartjs の[ドキュメント](https://vue-chartjs.org/#/Home)をご覧ください。
コールバック関数でデータを追加し、様々なチャートオプションを指定することができます。ブラウザは自動更新され、ストリーミングチャートが表示されます。カスタマイズのオプションについては Chart.js の[ドキュメント](https://www.chartjs.org/docs/2.9.4)[サンプル](https://www.chartjs.org/samples/2.9.4)、vue-chartjs の[ドキュメント](https://vue-chartjs.org/#/Home)をご覧ください。

#### src/components/MyChart.vue

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/angular/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Install [ng2-charts](https://valor-software.com/ng2-charts/), [Luxon](https://moment.github.io/luxon/), [chartjs-adapter-luxon](https://github.com/chartjs/chartjs-adapter-luxon) and [chartjs-plugin-streaming](https://nagix.github.io/chartjs-plugin-streaming/) into our project.

```bash
$ npm install ng2-charts@next luxon chartjs-adapter-luxon chartjs-plugin-streaming@next --save
$ npm install ng2-charts@next luxon chartjs-adapter-luxon chartjs-plugin-streaming --save
```
2 changes: 1 addition & 1 deletion docs/tutorials/plainjs/scripts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Include scripts

First, we need to include [Chart.js](https://github.com/chartjs/Chart.js/releases/latest), [Luxon](https://moment.github.io/luxon/), [chartjs-adapter-luxon](https://github.com/chartjs/chartjs-adapter-luxon/releases/latest) and [chartjs-plugin-streaming](https://github.com/nagix/chartjs-plugin-streaming/releases) in our page.
First, we need to include [Chart.js](https://github.com/chartjs/Chart.js/releases/latest), [Luxon](https://moment.github.io/luxon/), [chartjs-adapter-luxon](https://github.com/chartjs/chartjs-adapter-luxon/releases/latest) and [chartjs-plugin-streaming](https://github.com/nagix/chartjs-plugin-streaming/releases/latest) in our page.

```html
<script src="path/to/chartjs/dist/chart.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/react/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Install [Chart.js](https://www.chartjs.org), [react-chartjs-2](http://reactchartjs.github.io/react-chartjs-2/), [Luxon](https://moment.github.io/luxon/), [chartjs-adapter-luxon](https://github.com/chartjs/chartjs-adapter-luxon) and [chartjs-plugin-streaming](https://nagix.github.io/chartjs-plugin-streaming/) into our project.

```bash
$ npm install chart.js react-chartjs-2 luxon chartjs-adapter-luxon chartjs-plugin-streaming@next --save
$ npm install chart.js react-chartjs-2 luxon chartjs-adapter-luxon chartjs-plugin-streaming --save
```
4 changes: 2 additions & 2 deletions docs/tutorials/vue/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Install [Chart.js](https://www.chartjs.org), [vue-chartjs](https://vue-chartjs.org/) and [chartjs-plugin-streaming](https://nagix.github.io/chartjs-plugin-streaming/) into our project.

```bash
$ npm install chart.js@2 vue-chartjs chartjs-plugin-streaming --save
$ npm install chart.js@2 vue-chartjs chartjs-plugin-streaming@1 --save
```

::: warning
Currently, vue-chartjs only supports Chart.js 2.x and doesn't support 3.x. Therefore, we need to explicitly install Chart.js 2.x.
Currently, vue-chartjs only supports Chart.js 2.x and doesn't support 3.x. Therefore, we need to explicitly install Chart.js 2.x and chartjs-plugin-streaming 1.x.
:::
2 changes: 1 addition & 1 deletion docs/tutorials/vue/stream.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stream data

You can append the data in the callback function and add more chart options. The browser refreshes and displays a live streaming chart. See the Chart.js [documentation](https://www.chartjs.org/docs/2.8.0), [samples](https://www.chartjs.org/samples) and vue-chartjs [documentation](https://vue-chartjs.org/#/Home) for the customization options.
You can append the data in the callback function and add more chart options. The browser refreshes and displays a live streaming chart. See the Chart.js [documentation](https://www.chartjs.org/docs/2.9.4), [samples](https://www.chartjs.org/samples/2.9.4) and vue-chartjs [documentation](https://vue-chartjs.org/#/Home) for the customization options.

#### src/components/MyChart.vue

Expand Down
Loading

0 comments on commit 306b347

Please sign in to comment.