-
Notifications
You must be signed in to change notification settings - Fork 368
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
feat: 基础股票图 #2184
Conversation
xyuanbuilds
commented
Nov 20, 2023
|
||
type Params = Adaptor<StockOptions>; | ||
|
||
const X_FIELD = 'date'; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该不是 void
* 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>
操作有点问题,重交个pr |