Skip to content

An open source alternative to Tableau. Embeddable visual analytic

doc(): Japanese README

kyusho4ea243475f6b
diff --git a/README.ja-JP.md b/README.ja-JP.md
new file mode 100644
index 00000000..df79fca9
--- /dev/null
+++ b/README.ja-JP.md
@@ -0,0 +1,210 @@
+<img src="https://ch-resources.oss-cn-shanghai.aliyuncs.com/images/lang-icons/icon128px.png" width="22px" /> [English](./README.md) | [简体中文](./README.zh-CN.md) | 日本語
+
+# graphic-walker
+![](https://img.shields.io/github/license/Kanaries/graphic-walker?style=flat-square)
+![](https://img.shields.io/npm/v/@kanaries/graphic-walker?style=flat-square)
+![](https://img.shields.io/github/actions/workflow/status/kanaries/graphic-walker/auto-build.yml?style=flat-square)
+[![](https://img.shields.io/twitter/follow/kanaries_data?style=social)](https://twitter.com/kanaries_data)
+[![](https://img.shields.io/discord/987366424634884096?color=%237289da&label=Discord&logo=discord&logoColor=white&style=flat-square)](https://discord.gg/WWHraZ8SeV)
+[![](https://img.shields.io/badge/YouTube-red?style=flat-square&logo=youtube&logoColor=white)](https://www.youtube.com/@kanaries_data)
+[![](https://img.shields.io/badge/Medium-grey?style=flat-square&logo=medium&logoColor=white)](https://medium.com/@observedobserver)
+[![](https://img.shields.io/badge/LinkedIn-blue?style=flat-square&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/kanaries-data/)
+
+Graphic Walker は Tableau と異なる形で仕組みされて、Tableau のオープンソースの代用品です。簡単なドラッグ・アンド・ドロップ操作でデータ分析と可視化を実現します。データサイエンティストの分析需要を支援する機能を備えています。
+
+#### Tableau との違い
+
+Graphic Walker は React コンポーネントの形で、プラグインとして Web アプリに簡単に埋め込めます。Tableau と違って、Graphic Walker は豊かな機能でできているのではなく、基本の機能を簡単に使用できるようにデザインされている軽量なツールです。Graphic Walker を React アプリに埋め込むことは非常に簡単です !
+
+#### 主な機能
+
++ 使いやすいインタラクション。簡単な手順でデータの分析と可視化を完成できます。
++ Grammar of graphics に基づく [vega-lite](https://vega.github.io/vega-lite/) で実現する可視化。
++ データの中のパターンと期待はずれの値になったマークを解釈する情報の生成。
++ WebWorker の使用によって純粋なフロントエンドとして埋め込める高い拡張性。
+
+> Graphic Walker は軽量なコンポーネントです。もしより多くの機能がお望みなら、同じくわたしたちのチームで開発した [RATH](https://github.com/Kanaries/Rath) という拡張分析エンジンを使い、自動的なパターン発見、洞察探索、因果分析など多様な機能が備えるツールをご覧ください。
+
+## 手順
+
+最初は、分析したいデータを CSV ファイルとして導入します。データを確認する際に、各列どれがディメンションか、どれがメジャーかを決めます。
+
+> 導入できるデータソースの種類を増やす予定がありますので、追加をご希望する方は気軽に私たちに連絡または issue で教えてください。開発者には、直接にデータを props として Graphic Walker に入力することができます。[Rath](https://github.com/Kanaries/Rath) はその方法で、多くのデータソースをサポートします。また、[Rath](https://github.com/Kanaries/Rath) でデータを導入してセーブするファイルを Graphic Walker に取り込むこともできます。Graphic Walker で導入できないデータを [Rath](https://github.com/Kanaries/Rath) で処理したり、変換したりしてから Graphic Walker で分析する選択肢もあります。
+
+![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/gw-ds-01.png)
+
+確認が完了したら、『Submit』をクリックしましょう。データの各ディメンションとメジャーは左のリストに表示されます。それらをその右側のスペース(行、列、色、不透明度など)にドロップしたら、可視化が生成します。
+
+![](https://foghorn-assets.oss-cn-hangzhou.aliyuncs.com/graphic-walker/doc_images/after_load_data.png)
+
+
+メジャーには、合計、平均、個数などの統計関数が利用できます。
+
+![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/gw-bar-01.png)
+
+
+マークを設置して、グラフを別種類、例えば折れ線グラフに変更しましょう。
+
+![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/gw-line-01.png)
+
+
+多数のメジャーを比較するために、行や列の空欄に複数のメジャーを入れましょう。
+
+![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/gw-area-01.png)
+
+Tableau に似ていて、複数のディメンションを行や列に設置したら、複数のグラフが生成されます。
+
+![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/gw-scatter-01.png)
+
+Graphic Walker は編集した結果をファイルとして保存することができます。今回の分析を続けたい時または結果を残したい時は、セーブ・アンド・ロード機能を利用しましょう。
+
+データを探索する時に気になるとこがあったら、インサイト機能を使って補助情報をチェックしてみましょう。
+
+例えば、bike sharing データセットを分析するとき、1月の登録者の利用数が期待された値よりあきらかに低いということに気付きました。マークをクリックしてインサイト機能を使ってみよう。
+
+![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/explain-data-start.png)
+
+インサイト機能が提供した情報によると、1月には就業日の数が平均より少ないとのことです。
+
+![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/explain-data-result.png)
+
+## デプロイ
+
+デプロイより、今すぐ試すことをご希望する方は、オンラインバージョンをご利用ください:[Graphic Walker Online](https://graphic-walker.kanaries.net)
+
+### 方法1:本リポジトリを配置
+
+```bash
+yarn install
+
+yarn workspace @kanaries/graphic-walker build
+```
+
+### 方法2:あなたの Web アプリに実装
+
+Graphic Walker の埋め込みは非常に簡単です。まずはインストールです。
+
+```bash
+yarn add @kanaries/graphic-walker
+
+# or
+
+npm i --save @kanaries/graphic-walker
+```
+
+あなたの React アプリで:
+```typescript
+import { GraphicWalker } from '@kanaries/graphic-walker';
+
+const YourEmbeddingTableauStyleApp: React.FC = props => {
+    const { dataSource, fields } = props;
+    return <GraphicWalker
+        dataSource={dataSource}
+        rawFields={fields}
+        spec={graphicWalkerSpec}
+        i18nLang={langStore.lang}
+    />
+}
+
+export default YourEmbeddingTableauStyleApp;
+```
+
+### ローカルに試す (dev mode)
+```bash
+# packages/graphic-walker
+npm run dev
+```
+
+## オープンソースコミュニティに共有
+> もし [graphic walker](https://github.com/Kanaries/graphic-walker) がよいと思ったら、ぜひオープンソースコミュニティにご意見をシェアしてください。
+
+[![GitHub Repo stars](https://img.shields.io/badge/share%20on-twitter-03A9F4?style=flat-square&logo=twitter)](https://twitter.com/share?url=https://github.com/Kanaries/graphic-walker&text=Graphic-Walker:%20A%20different%20type%20of%20open-source%20alternative%20to%20Tableau)
+[![GitHub Repo stars](https://img.shields.io/badge/share%20on-facebook-1976D2?style=flat-square&logo=facebook)](https://www.facebook.com/sharer/sharer.php?u=https://github.com/Kanaries/graphic-walker)
+[![GitHub Repo stars](https://img.shields.io/badge/share%20on-linkedin-3949AB?style=flat-square&logo=linkedin)](https://www.linkedin.com/shareArticle?url=https://github.com/Kanaries/graphic-walker&title=Graphic-Walker:%20A%20different%20type%20of%20open-source%20alternative%20to%20Tableau)
+[![GitHub Repo stars](https://img.shields.io/badge/share%20on-hacker%20news-orange?style=flat-square&logo=ycombinator)](https://news.ycombinator.com/submitlink?u=https://github.com/Kanaries/graphic-walker)
+[![GitHub Repo stars](https://img.shields.io/badge/share%20on-reddit-red?style=flat-square&logo=reddit)](https://reddit.com/submit?url=https://github.com/Kanaries/graphic-walker&title=Graphic-Walker:%20A%20different%20type%20of%20open-source%20alternative%20to%20Tableau)
+
+
+## 多言語サポート
+
+Graphic Walker は現在_英語_(コード `"en"` または `"en-US"`)と中国語(コード `"zh"` または `"zh-CN"`)を完全にサポートします。以下のように `props.i18nLang` で指定した言語が設置できます:
+
+```typescript
+const YourApp = props => {
+    // ...
+
+    const curLang = /* get your i18n language */;
+
+    return <GraphicWalker
+        dataSource={dataSource}
+        rawFields={fields}
+        i18nLang={curLang}
+    />
+}
+```
+
+### 多言語インタフェース
+
+もしいまだにサポートされていない言語を使いたいなら、Graphic Walker はリソースを JSON として読み取ることができます。開発者は
+ Graphic Walker のソースコードを変更する必要なく、多言語データを入力することで他の言語を使えます。以下のように、`props.i18nResources` を設置します。
+
+```typescript
+const yourResources = {
+    'ja-JP': {
+        'key': 'value',
+        ...
+    },
+    'fr-FR': {
+        ...
+    },
+};
+
+const YourApp = props => {
+    // ...
+
+    const curLang = /* get your i18n language */;
+
+    return <GraphicWalker
+        dataSource={dataSource}
+        rawFields={fields}
+        i18nLang={curLang}
+        i18nResources={yourResources}
+    />
+}
+```
+
+Graphic Walker は `i18next` に基づく `react-i18next` を使用します。多言語インタフェースについては[こちら](https://www.i18next.com/misc/json-format)で参照しましょう。また、本リポジトリにある `/locales/en-US.json` を参照して翻訳を始めることもおすすめです。
+
+## API
+
+Graphic Walker Props interface
+
+```ts
+export interface EditorProps {
+ dataSource?: IRow[];
+ rawFields?: IMutField[];
+ spec?: Specification;
+ hideDataSourceConfig?: boolean;
+ i18nLang?: string;
+ i18nResources?: { [lang: string]: Record<string, string | any> };
+ keepAlive?: boolean;
+}
+```
+
+関数
+
++ `dataSource`, type `Array<{[key: string]: any}>`, key-value オブジェクトの配列。
++ `rawFields`, type [IMutField](./packages/graphic-walker/src/interfaces.ts). 列の配列。
++ `spec`, type [Specification](./packages/graphic-walker/src/interfaces.ts). 可視化の配置データ。
++ `hideDataSourceConfig` を `true` に設置して導入機能を非表示にします。
++ `i18nLang`, type `string`. 言語コード。
++ `i18nResources` 多言語データ。
++ `keepAlive`, type `boolean`. `true` に設置したら、Graphic Walker はコンポーネントが削除されても、また使う必要のあるデータをセーブします。
+
+## つづく
+
+Graphic Walker は主に基本的な分析任務をサポートします。複雑なデータを分析するには、少し足りない部分があるかも知れません。その時に [Rath](https://github.com/Kanaries/Rath) がおすすめです。
+
+## LICENSE
+
+Please refer to [LICENSE](./LICENSE) file.
\ No newline at end of file
diff --git a/README.md b/README.md
index 811255e1..68c0573c 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-<img src="https://ch-resources.oss-cn-shanghai.aliyuncs.com/images/lang-icons/icon128px.png" width="22px" /> English | [简体中文](./README.zh-CN.md)
+<img src="https://ch-resources.oss-cn-shanghai.aliyuncs.com/images/lang-icons/icon128px.png" width="22px" /> English | [简体中文](./README.zh-CN.md) | [日本語](./README.ja-JP.md)
# graphic-walker
![](https://img.shields.io/github/license/Kanaries/graphic-walker?style=flat-square)
@@ -20,7 +20,7 @@ It is extremely easy to embed in your apps just as a React component 🎉! The o
+ A user friendly drag and drop based interaction for exploratory data analysis with visualizations.
+ A grammar of graphics-based visual analytic user interface where users can build visualizations from low-level visual channel encodings. (based on [vega-lite](https://vega.github.io/vega-lite/))
+ A Data Explainer which explains why some patterns occur / what may cause them.
-+ Using webworker to handle computational tasks which allow you to use it as a pure front-end app.
++ Using WebWorker to handle computational tasks which allow you to use it as a pure front-end app.
> Graphic Walker is a lite visual analytic component. If you are interested in more advanced data analysis software, check our related project [RATH](https://github.com/Kanaries/Rath), an augmented analytic BI with automated insight discovery, causal analysis and visualization auto generation based on human's visual perception.
@@ -28,7 +28,7 @@ It is extremely easy to embed in your apps just as a React component 🎉! The o
First, upload your CSV file, preview your data, and define the analytic type of columns (dimension or measure).
-> We are developing more types of data sources. You are welcome to raise an issue telling us the types of sources you are using. If you are a developer, graphic-walker can be used as an embedding component, and you can pass your parsed data source to it. For example, [Rath](https://github.com/Kanaries/Rath) uses graphic-walker as an embeding components, and it supports many common data sources. You can load your data in [Rath](https://github.com/Kanaries/Rath) and bring the data into graphic-walker. In this way, users can also benefit from data cleaning and transformation features in [Rath](https://github.com/Kanaries/Rath).
+> We are developing more types of data sources. You are welcome to raise an issue telling us the types of sources you are using. If you are a developer, graphic-walker can be used as an embedding component, and you can pass your parsed data source to it. For example, [Rath](https://github.com/Kanaries/Rath) uses graphic-walker as an embedding components, and it supports many common data sources. You can load your data in [Rath](https://github.com/Kanaries/Rath) and bring the data into graphic-walker. In this way, users can also benefit from data cleaning and transformation features in [Rath](https://github.com/Kanaries/Rath).
![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/gw-ds-01.png)
@@ -57,13 +57,13 @@ To make a facet view of several subviews divided by the value in dimension, put
When you finish exploration, you can save the result into a local file, which can be imported next time.
-Sometimes you may have futher questions, such as why sales in Dec. is high. Graphic Walker provides a data explainer for these cases.
+Sometimes you may have further questions, such as why sales in Dec. is high. Graphic Walker provides a data explainer for these cases.
For example, in bike sharing dataset, ask why registered rents in Jan. is lower than expectation, the explainer will try to find some potential explanations:
![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/explain-data-start.png)
-(percent of number of workingday is less than average)
+(percent of number of working days is less than average)
![](https://docs-us.oss-us-west-1.aliyuncs.com/images/graphic-walker/explain-data-result.png)
@@ -175,7 +175,7 @@ Graphic Walker uses `react-i18next` to support i18n, which is based on `i18next`
## API
-Graphic Walker Props interfacer
+Graphic Walker Props interface
```ts
export interface EditorProps {
@@ -194,7 +194,7 @@ property description
+ `dataSource`, type `Array<{[key: string]: any}>`, array of key-value object data.
+ `rawFields`, type [IMutField](./packages/graphic-walker/src/interfaces.ts). array of fields(columns) of the data.
+ `spec`, type [Specification](./packages/graphic-walker/src/interfaces.ts). visualization specification
-+ `hideDataSourceConfig` at the top of graphic walker, you can import or upload dataset files. If you want to use graphic-walker as a controled component, you can hide those component by setting this prop to `true`
++ `hideDataSourceConfig` at the top of graphic walker, you can import or upload dataset files. If you want to use graphic-walker as a controlled component, you can hide those component by setting this prop to `true`
+ `i18nLang`, type `string`. lang label
+ `i18nResources` custom lang config
+ `keepAlive`, type `boolean`. whether to keep the component state when it is unmounted. If `true`, after you unmount the graphic-walker component, the state will still be store, and will be restore when the component is mount again.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 15fd0b86..ba71beb6 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -1,4 +1,4 @@
-<img src="https://ch-resources.oss-cn-shanghai.aliyuncs.com/images/lang-icons/icon128px.png" width="22px" /> [English](./README.md) | 简体中文
+<img src="https://ch-resources.oss-cn-shanghai.aliyuncs.com/images/lang-icons/icon128px.png" width="22px" /> [English](./README.md) | 简体中文 | [日本語](./README.ja-JP.md)
# graphic-walker
![](https://img.shields.io/github/license/Kanaries/graphic-walker)