Click the button below to create an annotation data source.
-
+
- The following variables can be used in the Markdown by using the Handlebar (mustache) syntax.{' '}
-
- Click here for documentation
- {' '}
- on the available expressions.
+
| Name | -Value | +
+ |
+
+ |
|---|---|---|---|
| {
return model.stacked === option.value;
});
const positionOptions = [
- { label: 'Right', value: 'right' },
- { label: 'Left', value: 'left' }
+ { label: intl.formatMessage({ id: 'tsvb.timeSeries.rightLabel', defaultMessage: 'Right' }), value: 'right' },
+ { label: intl.formatMessage({ id: 'tsvb.timeSeries.leftLabel', defaultMessage: 'Left' }), value: 'left' }
];
const selectedAxisPosOption = positionOptions.find(option => {
return model.axis_position === option.value;
});
const chartTypeOptions = [
- { label: 'Bar', value: 'bar' },
- { label: 'Line', value: 'line' }
+ { label: intl.formatMessage({ id: 'tsvb.timeSeries.barLabel', defaultMessage: 'Bar' }), value: 'bar' },
+ { label: intl.formatMessage({ id: 'tsvb.timeSeries.lineLabel', defaultMessage: 'Line' }), value: 'line' }
];
const selectedChartTypeOption = chartTypeOptions.find(option => {
return model.chart_type === option.value;
});
const splitColorOptions = [
- { label: 'Gradient', value: 'gradient' },
- { label: 'Rainbow', value: 'rainbow' }
+ { label: intl.formatMessage({ id: 'tsvb.timeSeries.gradientLabel', defaultMessage: 'Gradient' }), value: 'gradient' },
+ { label: intl.formatMessage({ id: 'tsvb.timeSeries.rainbowLabel', defaultMessage: 'Rainbow' }), value: 'rainbow' }
];
const selectedSplitColorOption = splitColorOptions.find(option => {
return model.split_color_mode === option.value;
@@ -97,7 +99,10 @@ function TimeseriesConfig(props) {
|