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

feat: 基础股票图 #2184

Closed
wants to merge 11 commits into from
Closed

Conversation

xyuanbuilds
Copy link
Contributor

image


type Params = Adaptor<StockOptions>;

const X_FIELD = 'date';
Copy link
Member

Choose a reason for hiding this comment

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

xField yField 不用默认值,放到示例里面即可

};

if (fallingFill) {
params.options.scale.color.range[0] = fallingFill;
Copy link
Member

Choose a reason for hiding this comment

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

set(params, 'options.scale.color.range[0]', fallingFill);  下同

import { StockOptions } from './type';

const RISING_COLOR = '#ef5350';
const FALLING_COLOR = '#26a69a';
Copy link
Member

Choose a reason for hiding this comment

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

没有 export 看上去可以直接放到 DEFAULT_COLORS 里面

/**
* 股票图适配器
*/
protected getSchemaAdaptor(): (params: Adaptor<StockOptions>) => void {
Copy link
Member

Choose a reason for hiding this comment

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

应该不是 void

xyuanbuilds and others added 10 commits November 20, 2023 10:48
* feat: violin plot

* feat: 封装violin API

* fix: delete useEffect

* fix: delete .editor

* fix: ignore .vscode

* fix: delete .vscode & delete init

* feat: ignore .vscode

* fix: open api xField yField seriesField

* fix: lint

---------

Co-authored-by: zy371123 <zy371123@alibaba-inc.com>
Co-authored-by: Joel Alan <31396322+lxfu1@users.noreply.github.com>
* fix: type&annotations

* fix: lint

* fix: delete log and run lint
* feat:添加打包图circle packing

* fix:删除仓库地址

* fix:删除已内置的baseOptions

---------

Co-authored-by: xifandong.dxf <xifandong.dxf@digital-engine.com>
Co-authored-by: Joel Alan <31396322+lxfu1@users.noreply.github.com>
* feat: change json

* feat: update json

* feat: update csv to json

* feat: finish csv to json

* feat: change color

* feat: change back

* fix: point-jitter

* fix: examples of strip and jitter

---------

Co-authored-by: zy371123 <zy371123@alibaba-inc.com>
* feat: add venn plots

* feat: 调整入参形式

---------

Co-authored-by: yelinlei.yll <yelinlei.yll@digital-engine.com>
@xyuanbuilds
Copy link
Contributor Author

操作有点问题,重交个pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants