From ef5b25a971d9902f26a3778f8f846cc81f9ab2ab Mon Sep 17 00:00:00 2001 From: Aaron Briggs <abriggs@contractor.usgs.gov> Date: Tue, 12 Jul 2022 11:46:45 -0500 Subject: [PATCH] fixed existing tests --- CHANGELOG.md | 1 + .../components/daily-value-hydrograph/time-series-graph.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5fc7d343..bfd44c8e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Daily statistical data will now appear under the parameter selection list. - Data tables accordion shows a table for a secondary instantaneous value parameter data when a second parameter (that has data) is selected. - Retrieve data controls now show a radio button for secondary parameter data when appropriate. +- Title, legend and time series data line will now show for a secondary parameter, if selected. ### Changed - Data download component was converted to Vue. diff --git a/assets/src/scripts/monitoring-location/components/daily-value-hydrograph/time-series-graph.js b/assets/src/scripts/monitoring-location/components/daily-value-hydrograph/time-series-graph.js index f48d112d9..c5b4f860d 100644 --- a/assets/src/scripts/monitoring-location/components/daily-value-hydrograph/time-series-graph.js +++ b/assets/src/scripts/monitoring-location/components/daily-value-hydrograph/time-series-graph.js @@ -171,9 +171,9 @@ export const drawTimeSeriesGraph = function(elem, store) { .call(link(store, (elem, layout) => elem.attr('transform', `translate(${layout.margin.left},${layout.margin.top})`), getMainLayout)) .call(link(store, appendAxes, createStructuredSelector({ xAxis: getXAxis(), - yAxis: getYAxis(), + primaryYAxis: getYAxis(), layout: getMainLayout, - yTitle: getCurrentTimeSeriesYTitle + primaryYTitle: getCurrentTimeSeriesYTitle }))) .call(link(store, drawDataSegments, createStructuredSelector({ segments: getCurrentTimeSeriesSegments, -- GitLab