Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix: some UI enhance

ObservedObserver58dc6152f6c9
diff --git a/README.md b/README.md
index a0562362..3305b01f 100644
--- a/README.md
+++ b/README.md
@@ -9,11 +9,11 @@
Graphic Walker is a different type of open-source alternative to Tableau. It allows data scientists to analyze data and visualize patterns with simple drag-and-drop operations.
-##### Why is it different?
+#### Why is it different?
It is extremely easy to embed in your apps just as a React component 🎉! The original purpose of graphic-walker is not to be a heavy BI platform, but a easy to embed, lite, plugin.
-##### Main features
+#### Main features
+ 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.
@@ -161,6 +161,32 @@ const YourApp = props => {
Graphic Walker uses `react-i18next` to support i18n, which is based on `i18next`, so your translation resources should follow [this format](https://www.i18next.com/misc/json-format). You can simply fork and edit `/locales/en-US.json` to start your translation.
+## API
+
+Graphic Walker Props interfacer
+
+```ts
+export interface EditorProps {
+ dataSource?: IRow[];
+ rawFields?: IMutField[];
+ spec?: Specification;
+ hideDataSourceConfig?: boolean;
+ i18nLang?: string;
+ i18nResources?: { [lang: string]: Record<string, string | any> };
+ keepAlive?: boolean;
+}
+```
+
+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`
++ `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.
+
## What's next
Graphic Walker is basically manual data exploration software. When facing more complex datasets, manual exploration can cost a lot of time, [Rath](https://github.com/Kanaries/Rath) is software providing a different data analysis experience with automation enhancement.
diff --git a/package.json b/package.json
index a1cc55ad..9c0d8dc7 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,12 @@
{
"name": "graphic-walker-home",
"version": "1.0.0",
- "description": "![](https://img.shields.io/github/license/kanaries/graphic-walker) ![](https://img.shields.io/npm/v/@kanaries/graphic-walker) ![](https://img.shields.io/github/workflow/status/kanaries/graphic-walker/Auto%20Build)",
+ "description": "![](https://img.shields.io/github/license/kanaries/graphic-walker) ![](https://img.shields.io/npm/v/@kanaries/graphic-walker) ![](https://img.shields.io/github/workflow/status/kanaries/graphic-walker/auto-build.yml)",
"private": true,
"dependencies": {},
"devDependencies": {},
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "build": "yarn workspace @kanaries/graphic-walker build"
},
"workspaces": {
"packages": ["packages/*"]
@@ -15,7 +15,7 @@
"type": "git",
"url": "git+https://github.com/Kanaries/graphic-walker.git"
},
- "keywords": [],
+ "keywords": ["visualization", "EDA", "data-analysis"],
"author": "",
"license": "Apache 2.0",
"bugs": {
diff --git a/packages/graphic-walker/src/dataSource/dataSelection/csvData.tsx b/packages/graphic-walker/src/dataSource/dataSelection/csvData.tsx
index 0febfb3f..ef719fbb 100644
--- a/packages/graphic-walker/src/dataSource/dataSelection/csvData.tsx
+++ b/packages/graphic-walker/src/dataSource/dataSelection/csvData.tsx
@@ -55,7 +55,7 @@ const CSVData: React.FC<ICSVData> = (props) => {
{t("open")}
</button>
<button
- className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 bg-yellow-600 rounded-sm hover:bg-yellow-500 text-white font-bold disabled:bg-gray-300"
+ className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 bg-black rounded-sm hover:bg-gray-500 text-white font-bold disabled:bg-gray-300"
disabled={tmpDataSource.length === 0}
onClick={() => {
onSubmitData();
diff --git a/packages/graphic-walker/src/dataSource/dataSelection/index.tsx b/packages/graphic-walker/src/dataSource/dataSelection/index.tsx
index f7fb486e..daeffd4e 100644
--- a/packages/graphic-walker/src/dataSource/dataSelection/index.tsx
+++ b/packages/graphic-walker/src/dataSource/dataSelection/index.tsx
@@ -27,7 +27,7 @@ const DataSelection: React.FC = props =>{
<div
className={
`pb-1 cursor-pointer ${
- sourceType === 'public' ? 'underline' : ''
+ sourceType === 'public' ? 'underline border-r-2 border-black' : ''
} hover:bg-gray-200 hover:text-purple-600`
}
onClick={() => { setSourceType('public'); }}
diff --git a/packages/graphic-walker/src/dataSource/dataSelection/publicData.tsx b/packages/graphic-walker/src/dataSource/dataSelection/publicData.tsx
index 0863d5ae..7a592621 100644
--- a/packages/graphic-walker/src/dataSource/dataSelection/publicData.tsx
+++ b/packages/graphic-walker/src/dataSource/dataSelection/publicData.tsx
@@ -43,7 +43,7 @@ const PublicData: React.FC<IPublicDataProps> = props => {
}
</div>
<hr className="m-1" />
- <button className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 bg-yellow-600 rounded-sm hover:bg-yellow-500 text-white font-bold disabled:bg-gray-300"
+ <button className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 bg-black rounded-sm hover:bg-gray-500 text-white font-bold disabled:bg-gray-300"
disabled={tmpDataSource.length === 0}
onClick={() => { commonStore.commitTempDS() }}
>
diff --git a/packages/graphic-walker/src/locales/en-US.json b/packages/graphic-walker/src/locales/en-US.json
index b786e842..33d5d31e 100644
--- a/packages/graphic-walker/src/locales/en-US.json
+++ b/packages/graphic-walker/src/locales/en-US.json
@@ -88,7 +88,7 @@
},
"dialog": {
"create_data_source": "New Data Source",
- "data_types": "Choose Import Methods",
+ "data_types": "Choose Data Source Type",
"text_file_data": "Open Local Text File",
"public_data": "Use Public Dataset",
"data_source_type": "Data Source Type: [{{sourceType}}]",