Skip to content

Commit

Permalink
[Feature]: Timeseries/Scatter 2 way sync (opensearch-project#1030)
Browse files Browse the repository at this point in the history
* Fixed 2 way sync issues for line

Signed-off-by: ruchika-narang <ruchika_narang@persistent.com>

* Updated snapshots

Signed-off-by: ruchika-narang <ruchika_narang@persistent.com>

* Removed extra line

Signed-off-by: ruchika-narang <ruchika_narang@persistent.com>

Signed-off-by: ruchika-narang <ruchika_narang@persistent.com>
  • Loading branch information
ruchika-narang authored and Koustubh5585 committed Sep 27, 2022
1 parent a462746 commit d642af6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const Line = ({ visualizations, layout, config }: any) => {
const timestampField = find(fields, (field) => field.type === 'timestamp');

if (dataConfig.span && dataConfig.span.time_field && timestampField) {
xaxis = dataConfig.dimensions ? [timestampField, ...dataConfig.dimensions] : [timestampField, []];
xaxis = [timestampField, ...dataConfig.dimensions];
} else {
xaxis = dataConfig.dimensions;
}
Expand Down

0 comments on commit d642af6

Please sign in to comment.