Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[双轴图] 更新配置项 & 拆分demo #1473

Merged
merged 39 commits into from
Aug 21, 2020
Merged

[双轴图] 更新配置项 & 拆分demo #1473

merged 39 commits into from
Aug 21, 2020

Conversation

liuzhenying
Copy link
Member

@liuzhenying liuzhenying commented Aug 20, 2020

0821 所做更改

  1. geometryConfigs -> geometryOptions
  2. Biax -> DualAxes
  3. adaptor 中 field 合并
  4. LineOptions, ColumnOptions 从各自 type 中引用
  5. 文档部分从 common 中引用

本次修改包括

  1. 更新配置项,从和 common/geometry 保持一致,到和 LineOption,ColumnOption 保持一致
  2. 拆分 demo,补充齐 v1 demo 示例(单柱线图的 color 配置项,因为折柱图实现方式原因,暂无法显示验收,先保留代码,等待折柱图修复)
  3. 从 adaptor 中拆出部分代码

src/plots/biax/types.ts Outdated Show resolved Hide resolved
src/plots/biax/types.ts Outdated Show resolved Hide resolved
@hustcc
Copy link
Member

hustcc commented Aug 20, 2020

geometryConfigs 要不要改成 geometryOptions?因为我们的概念中都是 Options,现在又有一个叫 config 的,不太好!最好我们代码中都搜不到 config 这个词

@liuzhenying
Copy link
Member Author

geometryConfigs 要不要改成 geometryOptions?因为我们的概念中都是 Options,现在又有一个叫 config 的,不太好!最好我们代码中都搜不到 config 这个词

可以呀,我想的是跟随geometry 的,比如 lineOption,以及 color,label,都放在 geometryConfigs(geometryOptions)里。其他的组件配置,例如 yAixs,animate,放在BiaxOption 里

@liuzhenying liuzhenying changed the title [双轴图] 更新配置项 & 拆分demo [WIP][双轴图] 更新配置项 & 拆分demo Aug 21, 2020
@liuzhenying liuzhenying changed the title [WIP][双轴图] 更新配置项 & 拆分demo [双轴图] 更新配置项 & 拆分demo Aug 21, 2020
@liuzhenying liuzhenying requested review from hustcc and visiky August 21, 2020 10:14
import { ColumnOptions } from '../column/types';

export enum AxisType {
Left = 'Left',
Copy link
Member

@hustcc hustcc Aug 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个也可以小写~后面再改!


readonly geometryOptions?: GeometryConfig[];

readonly yAxis?: Options['yAxis'][];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对外暴露的 types,都要写清楚注释。后面分支改。

@hustcc
Copy link
Member

hustcc commented Aug 21, 2020

还有两个小问题,代码风格的。分支合并了,后面再改!

@hustcc hustcc merged commit d3eb1a1 into master Aug 21, 2020
@hustcc hustcc deleted the v2_feat_combo branch August 21, 2020 13:53
BBSQQ pushed a commit that referenced this pull request Aug 25, 2020
* feat: add baseCombo & dualline

* fix: 部分lint 错误

* fix: npm run fix

* fix: 删除无用变量

* feat: push geogemtry 拆分方式

* feat: lint

* fix: lint

* fix: github test 失败

* feat: 双轴图打平

* feat: line

* feat: 更改双轴图引用

* feat: test 用例

* fix: lint

* feat: fix lint

* fix:  fix 不必要的提交

* fix: merge

* fix: typescript

* feat: 更改 cr 问题

* feat: 更新文档及柱线混合图

* feat: 同步部分测试用例

* fix: eslint

* fix: 简化 demo

* fix: tslint

* fix: demo 链接

* feat: 1. 更新 Option 2. 拆分 Demo 3.拆分部分方法

* feat: 补充 label demo

* feat: 更新 test

* feat: 合并 field adaptor

* feat: 更改 geometryConfigs 值 geometryOptions

* feat: 更改双轴图命名

* feat: 更改双轴图命名

* feat: 更改双轴图名字

* feat: 引用 common 文档

Co-authored-by: aiyin.lzy <nadia.lzy@antfin.com>
BBSQQ pushed a commit that referenced this pull request Aug 25, 2020
* feat: add baseCombo & dualline

* fix: 部分lint 错误

* fix: npm run fix

* fix: 删除无用变量

* feat: push geogemtry 拆分方式

* feat: lint

* fix: lint

* fix: github test 失败

* feat: 双轴图打平

* feat: line

* feat: 更改双轴图引用

* feat: test 用例

* fix: lint

* feat: fix lint

* fix:  fix 不必要的提交

* fix: merge

* fix: typescript

* feat: 更改 cr 问题

* feat: 更新文档及柱线混合图

* feat: 同步部分测试用例

* fix: eslint

* fix: 简化 demo

* fix: tslint

* fix: demo 链接

* feat: 1. 更新 Option 2. 拆分 Demo 3.拆分部分方法

* feat: 补充 label demo

* feat: 更新 test

* feat: 合并 field adaptor

* feat: 更改 geometryConfigs 值 geometryOptions

* feat: 更改双轴图命名

* feat: 更改双轴图命名

* feat: 更改双轴图名字

* feat: 引用 common 文档

Co-authored-by: aiyin.lzy <nadia.lzy@antfin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants