fix: Line Chart Annotation Info Update (#19001)

* fix Line Chart Annotation Info Updage

* wrap annotation text with transation

* resolve comment
This commit is contained in:
Smart-Codi
2022-04-14 13:46:32 -04:00
committed by GitHub
parent 34008f78c9
commit ac2c66ccf6
2 changed files with 9 additions and 7 deletions

View File

@@ -385,11 +385,13 @@ export default class AnnotationLayer extends React.PureComponent {
description = 'Select the Annotation Layer you would like to use.';
} else {
label = t('Chart');
description = `Use a pre defined Superset Chart as a source for annotations and overlays.
your chart must be one of these visualization types:
[${this.getSupportedSourceTypes(annotationType)
.map(x => x.label)
.join(', ')}]`;
description = t(
`Use another existing chart as a source for annotations and overlays.
Your chart must be one of these visualization types: [%s]`,
this.getSupportedSourceTypes(annotationType)
.map(x => x.label)
.join(', '),
);
}
} else if (annotationType === ANNOTATION_TYPES.FORMULA) {
label = 'Formula';