Skip to content

Commit d0e7c53

Browse files
committed
multi-graph tool
1 parent e641ab9 commit d0e7c53

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

client/src/components/MapLegends/GlobalTime.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts">
22
import { computed, defineComponent } from 'vue';
33
import MapStore from '../../MapStore';
4-
import { min } from 'd3';
54
65
export default defineComponent({
76
name: 'GlobalTime',

client/src/components/TabularData/VectorFeatureTableGraph.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
ref,
1010
watch,
1111
} from 'vue';
12-
import { first, throttle } from 'lodash';
12+
import { throttle } from 'lodash';
1313
import UVdatApi from '../../api/UVDATApi';
1414
import { FeatureGraphData, FeatureGraphs, FeatureGraphsRequest } from '../../types';
1515
import MapStore from '../../MapStore';
@@ -160,7 +160,6 @@ export default defineComponent({
160160
steps = Math.min(steps, stepChartSize);
161161
});
162162
});
163-
console.log('minGraph', minGraph, 'maxGraph', maxGraph, 'steps', steps);
164163
MapStore.updateChartsMinMax(minGraph, maxGraph, steps);
165164
const graphRenderData: FeatureGraphData = {
166165
table_name: 'Multiple Graphs',

uvdat/core/rest/vector_feature_table_data.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ def feature_graphs(self, request, *args, **kwargs):
340340

341341
result = []
342342

343-
for i, (table_type, x_axis, y_axis, indexer) in enumerate(zip(table_types, x_axes, y_axes, indexers)):
343+
for _i, (table_type, x_axis, y_axis, indexer) in enumerate(
344+
zip(table_types, x_axes, y_axes, indexers)
345+
):
344346
graphs = self.get_graphs(
345347
table_type=table_type,
346348
vector_ids=[vector_feature],
@@ -351,13 +353,15 @@ def feature_graphs(self, request, *args, **kwargs):
351353
confidence_level=confidence_interval,
352354
data_types=display,
353355
)
354-
result.append({
355-
'tableType': table_type,
356-
'xAxis': x_axis,
357-
'yAxis': y_axis,
358-
'indexer': indexer,
359-
'graphs': graphs,
360-
})
356+
result.append(
357+
{
358+
'tableType': table_type,
359+
'xAxis': x_axis,
360+
'yAxis': y_axis,
361+
'indexer': indexer,
362+
'graphs': graphs,
363+
}
364+
)
361365

362366
return Response(result, status=status.HTTP_200_OK)
363367

0 commit comments

Comments
 (0)