An open source alternative to Tableau. Embeddable visual analytic
TypeScript bidatadata-analysisdata-miningdata-visualizationedak6skanarieslow-codepivot-tablereacttableautableau-alternativetypescriptvegavega-litevisualization
fix: explainer style
ObservedObserver63016ac11266
diff --git a/README.md b/README.mdindex c221bee5..8d46cb42 100644--- a/README.md+++ b/README.md@@ -52,6 +52,16 @@ To make a facet view of several subviews divided by the value in dimension, putWhen 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.++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:++++(percent of number of workingday is less than average)+++## DeployIf you want to use Graphic Walker as a data exploration tool without thinking about deployment details, you can use our online out-of-the-box version.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 91e7497d..9e8f5dd1 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -56,6 +56,14 @@ Graphic Walker 是一个非常规的tableau的开源替代,它可以帮助数当你完成探索,可以选择将结果导出到文件,这样你下次在分析时,可以快速的导入之前分析的结果。+有时你可能会有更深的问题,比如为什么12月份的销量会高,等等。++下面是一个例子,在共享单车数据集中,为什么注册用户在1月份的租用量会低于预期。数据解释器会给出潜在的解释(比如一月份的假期占比高)+++++## 部署diff --git a/packages/graphic-walker/src/insightBoard/mainBoard.tsx b/packages/graphic-walker/src/insightBoard/mainBoard.tsxindex 4b0f808d..20b3ecc1 100644--- a/packages/graphic-walker/src/insightBoard/mainBoard.tsx+++ b/packages/graphic-walker/src/insightBoard/mainBoard.tsx@@ -123,11 +123,11 @@ const InsightMainBoard: React.FC<InsightMainBoardProps> = (props) => {.map((k, ki) => {return (<div key={`dim-${ki}`}>- <div className="inline bg-gray-400 p-1 rounded underline text-white">+ <div className="inline bg-gray-400 py-0.5 px-2 mx-2 rounded-full underline text-white">{formatFieldName(k, fields)}</div><div className="inline text-lg ml-1 mr-1">=</div>- <div className="inline bg-blue-600 p-1 rounded text-white">{filters[k]}</div>+ <div className="inline bg-blue-600 py-0.5 px-2 mx-2 rounded-full text-white">{filters[k]}</div></div>);});@@ -139,13 +139,13 @@ const InsightMainBoard: React.FC<InsightMainBoardProps> = (props) => {const valueDesc = useMemo<React.ReactElement[]>(() => {const meaStatus = valueExp.map((mea, mi) => (<div key={`mea-${mi}`}>- <span className="bg-gray-400 p-1 rounded underline text-white">+ <span className="bg-gray-400 py-0.5 px-2 mx-2 rounded-full underline text-white">{formatFieldName(mea.key, fields)}({mea.op})</span>- <span className="bg-red-500 p-1 rounded text-white">+ <span className="bg-red-500 py-0.5 px-2 mx-2 rounded-full text-white">{mea.score === 1 ? t("explain.lg_than") : t("explain.sm_than")}- {t("explain.expection")}{" "}</span>+ <span>{t("explain.expection")}{" "}</span></div>));return meaStatus;@@ -177,21 +177,21 @@ const InsightMainBoard: React.FC<InsightMainBoardProps> = (props) => {<div ref={container}></div>{recSpaces[visIndex] && (<div>- {t("constant.analytic_type.dimension")}+ {t("constant.analytic_type.dimension")} ={recSpaces[visIndex].dimensions.map((f) => formatFieldName(f, fields)).join(", ")}<br />- {t("constant.analytic_type.measure")}+ {t("constant.analytic_type.measure")} ={recSpaces[visIndex].measures.map((m) => m.key).map((f) => formatFieldName(f, fields)).join(", ")}<br />- {t("explain.contains")}+ {" " + t("explain.contains") + " "}{recSpaces[visIndex].type? t(`explain.reason.${IReasonTypes[recSpaces[visIndex].type]}`): t("explain.unrecognized")}{" "},{t("explain.score")}- {recSpaces[visIndex].score}。+ {recSpaces[visIndex].score}<br />{recSpaces[visIndex].description &&recSpaces[visIndex].description.intMeasures &&diff --git a/packages/graphic-walker/src/locales/en-US.json b/packages/graphic-walker/src/locales/en-US.jsonindex c91a2e59..b786e842 100644--- a/packages/graphic-walker/src/locales/en-US.json+++ b/packages/graphic-walker/src/locales/en-US.json@@ -161,13 +161,13 @@"explain": {"lg_than": "greater than","sm_than": "less than",- "expection": "Expectation",+ "expection": "expectation","unrecognized": "Unrecognized","score": "score","contains": "contains","reason": {- "selection_dim_distribution": "clues in other dimensions",- "selection_mea_distribution": "clues in other measures",+ "selection_dim_distribution": "dimensions' clues",+ "selection_mea_distribution": "measures' clues","children_major_factor": "major factor","children_outlier": "outlier"}