-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/metrics chart #4
base: main
Are you sure you want to change the base?
Conversation
6956037
to
febd159
Compare
AGGREGATIONS, | ||
GROUPBY, | ||
METRICS_AGGREGATION_OPTIONS, | ||
numericalTypes, |
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.
Change numericalTypes to NUMERICAL_TYPES. This change has been merged to main. Please check.
...userConfigs?.dataConfig, | ||
}); | ||
} | ||
}, [userConfigs, userConfigs?.dataConfig, visualizations.vis.name]); |
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.
Do we need the dependency of userConfigs also?
top: 20px; | ||
text-align: center; | ||
width: '100%' | ||
} |
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.
Add new line at the end of file
4655498
to
d8845dd
Compare
d8845dd
to
ff477c2
Compare
Signed-off-by: SivaprasadAluri <[email protected]>
Signed-off-by: SivaprasadAluri <[email protected]>
Signed-off-by: SivaprasadAluri <[email protected]>
Signed-off-by: SivaprasadAluri <[email protected]>
Signed-off-by: SivaprasadAluri <[email protected]>
Signed-off-by: SivaprasadAluri <[email protected]>
Signed-off-by: SivaprasadAluri <[email protected]>
076b0f4
to
da4f2bf
Compare
}; | ||
|
||
const handleServiceRemove = (index: number, name: string) => { | ||
const arr = [...configList[name]]; |
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.
Provide proper name for the variable arr.
<EuiTitle size="xxs"> | ||
<h3>Series</h3> | ||
</EuiTitle> | ||
{getCommonUI(configList.series, 'series')} |
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.
Replace series with the constant [AGGREGATIONS]
const { | ||
data, | ||
metadata: { fields }, | ||
} = visualizations.data.rawVizData; |
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.
Can destructure the object as in other visualizations.
<div className="metricsContainer"> | ||
<h4 className="metricTitle"> {dataTitle} </h4> | ||
<div> | ||
{dataConfig && dataConfig?.series?.length > 0 ? ( |
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.
Try to access series with a constant
</div> | ||
<div className="aggregateLabel" style={{ fontSize: fontSize / 2 + 'px' }}> | ||
<span> {aggFunction.label} </span> | ||
{metric.alias !== '' ? metric.alias : metric.label} |
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.
From alias everything is changed to custom label. For consistency please change it everywhere required.
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.
Please check the minor comments. Rest looks good to me
Signed-off-by: SivaprasadAluri <[email protected]>
Description
Added Metrics Charts Styles Panel
Issues Resolved
Metrics Chart opensearch-project#872