-
Notifications
You must be signed in to change notification settings - Fork 49
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
[IMP] chart: support import/export of dataset trendlines #5318
base: master
Are you sure you want to change the base?
Conversation
2d5c4c7
to
83539de
Compare
83539de
to
ec88721
Compare
5dec1f9
to
4db8ba5
Compare
25e3cc0
to
133cff2
Compare
e9ca1fb
to
cbb4df1
Compare
cbb4df1
to
9a39663
Compare
9a39663
to
4c37821
Compare
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.
Conflict :/
4273c54
to
40545cb
Compare
f6175f0
to
325bfcd
Compare
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.
👋
f2a104f
to
9889b9b
Compare
Prior to this commit, when adding a moving average trendline, the window value is not saved unless a click away event is triggered. This commit fixes this issue by initializing the moving average window value when the user selects it from the side pandel. Task: 0
This commit introduces the ability to import and export trendlines associated with datasets in chart configurations. Task: 4319957
9889b9b
to
7f8f509
Compare
@hokolomopo It should be good now |
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.
👋
case "trailingMovingAverage": | ||
config = { | ||
type, | ||
window: this.defaultWindowSize, |
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.
Yeah it's now on a separate commit, but it doens't really address the issue. window is still typed as possibly undefined in a trendline. Either 1) it should be required, typed as such and we should do a migration to ensure it's always defined or 2) your code should also work when window is undefined, and defaults to DEFAULT_WINDOW_SIZE
size.
- sounds way better
const attrs: XMLAttributes = [ | ||
[ | ||
"val", | ||
trend.color ? toXlsxHexColor(trend.color).slice(0, 6) : getTrendlineColor(dataSetColor), |
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.
toXlsxHexColor(trend.color).slice(0, 6)
is wrong, xlsx color have the alpha as the first two digits (AARRGGBB). You will slice the blue channel instead of the alpha channel here.
{ | ||
dataRange: "Sheet1!B27:B35", | ||
backgroundColor: "#1F77B4", | ||
}, |
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.
useless change
This commit introduces the ability to import and export trendlines associated with datasets in chart configurations.
Task: 4319957
review checklist