Skip to content

Commit 86a0cf8

Browse files
authored
Merge pull request #223 from CivicDataLab/222-update-charts-queries-in-dataset-detail-page
Update chart queries and fix css of resource cards in dataset details page
2 parents d8b06d4 + 4b82630 commit 86a0cf8

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

config/graphql/dataset-queries.ts

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,34 @@ export const DATASET_QUERY: any = gql`
3939
export const CHARTS_QUERY: any = gql`
4040
query chartsData($datasetId: UUID!) {
4141
chartsDetails(datasetId: $datasetId) {
42-
aggregateType
4342
chartType
4443
description
4544
id
4645
name
47-
showLegend
48-
xAxisLabel
49-
yAxisLabel
46+
options {
47+
aggregateType
48+
xAxisColumn {
49+
id
50+
fieldName
51+
}
52+
yAxisColumn {
53+
field {
54+
id
55+
fieldName
56+
}
57+
}
58+
showLegend
59+
xAxisLabel
60+
yAxisLabel
61+
regionColumn {
62+
id
63+
fieldName
64+
}
65+
valueColumn {
66+
id
67+
fieldName
68+
}
69+
}
5070
chart
5171
}
5272
}

0 commit comments

Comments
 (0)