Skip to content

Commit

Permalink
Update reporting module snapshot schema to include map and line chart
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKhatri authored and tnagorra committed Apr 26, 2024
1 parent a448978 commit 8bbae34
Show file tree
Hide file tree
Showing 2 changed files with 405 additions and 0 deletions.
289 changes: 289 additions & 0 deletions app/views/PublicReportView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,96 @@ const PUBLIC_REPORT_DETAILS = gql`
verticalGridLineVisible
verticalTickVisible
horizontalTickLabelRotation
style {
bar {
border {
width
color
opacity
style
}
}
horizontalAxisTickLabel {
align
color
family
size
weight
}
horizontalAxisTitle {
align
color
family
size
weight
}
horizontalGridLine {
lineColor
lineOpacity
lineWidth
}
horizontalTick {
lineColor
lineOpacity
lineWidth
}
legend {
heading {
align
color
family
size
weight
}
label {
align
color
family
size
weight
}
position
shape
}
subTitle {
align
color
family
size
weight
}
title {
align
color
family
size
weight
}
verticalAxisTickLabel {
align
color
family
size
weight
}
verticalAxisTitle {
align
color
family
size
weight
}
verticalGridLine {
lineColor
lineOpacity
lineWidth
}
verticalTick {
lineColor
lineOpacity
lineWidth
}
}
}
timelineChart {
category
Expand All @@ -369,6 +459,205 @@ const PUBLIC_REPORT_DETAILS = gql`
sourceUrl
title
}
lineChart {
horizontalAxis {
field
}
horizontalAxisLineVisible
horizontalAxisTitle
horizontalGridLineVisible
horizontalTickVisible
legendHeading
sheet
subTitle
title
verticalAxis {
label
aggregationType
clientId
color
field
}
verticalAxisExtendMinimumValue
verticalAxisExtendMaximumValue
verticalAxisLineVisible
verticalAxisTitle
verticalGridLineVisible
verticalTickVisible
horizontalTickLabelRotation
style {
horizontalAxisTickLabel {
align
color
family
size
weight
}
horizontalAxisTitle {
align
color
family
size
weight
}
horizontalGridLine {
lineColor
lineOpacity
lineWidth
}
horizontalTick {
lineColor
lineOpacity
lineWidth
}
legend {
heading {
align
color
family
size
weight
}
label {
align
color
family
size
weight
}
position
shape
}
subTitle {
align
color
family
size
weight
}
title {
align
color
family
size
weight
}
verticalAxisTickLabel {
align
color
family
size
weight
}
verticalAxisTitle {
align
color
family
size
weight
}
verticalGridLine {
lineColor
lineOpacity
lineWidth
}
verticalTick {
lineColor
lineOpacity
lineWidth
}
}
}
map {
title
subTitle
mapHeight
maxZoom
minZoom
scaleBar
showScale
zoom
enableZoomControls
centerLatitude
centerLongitude
style {
title {
align
color
family
size
weight
}
subTitle {
align
color
family
size
weight
}
}
layers {
clientId
name
visible
opacity
order
type
layerConfig {
mapboxLayer {
mapboxStyle
accessToken
}
lineLayer {
contentReferenceId
style {
line {
strokeType
dashSpacing
stroke
strokeWidth
}
}
}
polygonLayer {
contentReferenceId
labelColumn
}
symbolLayer {
contentReferenceId
labelPropertyKey
scaleType
showLabels
symbol
style {
symbol {
align
color
family
size
weight
}
label {
align
color
family
size
weight
}
}
}
heatmapLayer {
blur
contentReferenceId
fillPalette
radius
weighted
weightPropertyKey
scaleDataMax
}
}
}
}
}
}
isPublic
Expand Down
Loading

0 comments on commit 8bbae34

Please sign in to comment.