-
Notifications
You must be signed in to change notification settings - Fork 3.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: udpate MosaicViewProperties #20759
Conversation
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.
(Caveat: I'm not as familiar with this area of the code)
My main concern is around backwards-compatibility with existing models that don't specify these fields.
Also: could you add a line to CHANGELOG.md
?
ch.XCol = p.XColumn | ||
ch.GenerateXAxisTicks = p.GenerateXAxisTicks | ||
ch.XTotalTicks = p.XTotalTicks | ||
ch.XTickStart = p.XTickStart | ||
ch.XTickStep = p.XTickStep | ||
ch.YLabelColumnSeparator = p.YLabelColumnSeparator |
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.
Should we do anything special here if YLabelColumnSeparator
is empty, for backwards-compatibility?
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.
No need. Empty string will be interpreted correctly by the UI.
ch.XCol = p.XColumn | ||
ch.GenerateXAxisTicks = p.GenerateXAxisTicks | ||
ch.XTotalTicks = p.XTotalTicks | ||
ch.XTickStart = p.XTickStart | ||
ch.XTickStep = p.XTickStep | ||
ch.YLabelColumnSeparator = p.YLabelColumnSeparator | ||
ch.YLabelColumns = p.YLabelColumns |
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.
Same question, should we do anything special for empty?
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.
No. Empty array will be interpreted correctly by the UI.
@@ -9271,6 +9277,9 @@ components: | |||
type: string | |||
ySuffix: | |||
type: string | |||
hoverDimension: | |||
type: string | |||
enum: [auto, x, y, xy] |
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.
Should we mark one of these as the default
?
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.
No. Empty string will be interpreted correctly by the UI.
@@ -832,11 +832,14 @@ func convertCellView(cell influxdb.Cell) chart { | |||
ch.Kind = chartKindMosaic | |||
ch.Queries = convertQueries(p.Queries) | |||
ch.Colors = stringsToColors(p.ViewColors) | |||
ch.HoverDimension = p.HoverDimension |
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.
And here, should we handle empty / unset?
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.
No need.
XColumn: c.XCol, | ||
GenerateXAxisTicks: c.GenerateXAxisTicks, | ||
XTotalTicks: c.XTotalTicks, | ||
XTickStart: c.XTickStart, | ||
XTickStep: c.XTickStep, | ||
YLabelColumnSeparator: c.YLabelColumnSeparator, | ||
YLabelColumns: c.YLabelColumns, |
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.
Same questions about handling empty / unset for these new fields.
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.
No need. They will be interpreted correctly.
- foo | ||
ySeriesColumns: | ||
- _value | ||
- foo |
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.
If you leave the test and this file unchanged, does the existing test logic still pass?
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.
Yes.
Changelog updated. |
bd45ee3
to
2cb19f1
Compare
The latest force push was to rebase on top of master. |
Closes influxdata/ui#510
Updates the Mosaic View Properties to include hover dimension and two new properties for the y-axis. This fleshes out Mosaic graphs to render properly any data set. Also improves the hovering.