-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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): marker upgrade for stock charts #20166
base: v6
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,6 +146,7 @@ export function dataTransform( | |
// x y is provided | ||
if (item.coord == null || !isArray(dims)) { | ||
item.coord = []; | ||
item.value = numCalculate(data, data.mapDimension(dims[1]), item.type); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should it be numCalculate(data, data.mapDimension(seriesModel.getBaseAxis()), item.type); ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. Thanks for correction. |
||
} | ||
else { | ||
// Each coord support max, min, average | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -234,7 +234,13 @@ class Polar implements CoordinateSystem, CoordinateSystemMaster { | |
const r0 = this.r0; | ||
|
||
return d2 <= r * r && d2 >= r0 * r0; | ||
} | ||
}, | ||
|
||
// As the bounding box | ||
x: this.cx - radiusExtent[1], | ||
y: this.cy - radiusExtent[1], | ||
width: radiusExtent[1] * 2, | ||
height: radiusExtent[1] * 2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we support There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems the |
||
}; | ||
} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
screen
might misleads users, because the the chart is just a part of a html webpage, and in CSS thescreen
already has some specific meaning (also doesn't refer to the real screen but the semantic is well-known).But I haven't come up with a perfect name yet.
Some candidates:
viewport
(also has specific meaning in HTML/CSS but better than screen?)global
(a more general term?)global-container
coordinate
is a point in a coordinate system, rather than coordinate system itself.Should this option be
coordinateSystem
orcoordinate-system
, since the termcoordinateSystem
has been used in echarts option?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.
global
sounds good to me, only that it's an adj. instead of noun. In the case ofrelativeTo
something, it may be better to follow with a noun. GPT suggestscontainer
andcoordinateSystem
and I think it's Okay. What do you think?