Skip to content

Commit

Permalink
feat(aggregate-od): Aggregate O/D Spider diagrams learned to be in da…
Browse files Browse the repository at this point in the history
…shboards

- chart type "aggregate"
- Also learned English!
  • Loading branch information
billyc committed Dec 22, 2021
1 parent 7e32b23 commit 8485d45
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 110 deletions.
48 changes: 48 additions & 0 deletions src/charts/aggregate.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<template lang="pug">
aggregate-od.deck-map(
:root="fileSystemConfig.slug"
:subfolder="subfolder"
:config="config"
:thumbnail="false"
)

</template>

<script lang="ts">
import { Vue, Component, Watch, Prop } from 'vue-property-decorator'
import { FileSystemConfig } from '@/Globals'
import AggregateOd from '@/plugins/aggregate-od/AggregateOd.vue'
@Component({ components: { AggregateOd } })
export default class VueComponent extends Vue {
@Prop({ required: true }) fileSystemConfig!: FileSystemConfig
@Prop({ required: true }) subfolder!: string
@Prop({ required: true }) files!: string[]
@Prop({ required: true }) config!: any
private mounted() {
// console.log(this.fileSystemConfig)
// console.log('subfolder', this.subfolder)
// console.log('config', this.config)
this.$emit('isLoaded')
}
}
</script>

<style scoped lang="scss">
@import '@/styles.scss';
.deck-map {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
flex-direction: column;
}
@media only screen and (max-width: 640px) {
}
</style>
3 changes: 2 additions & 1 deletion src/charts/allCharts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import transit from './transit.vue'
import vega from './vega.vue'

// full-screen map visualizations:
import aggregate from './aggregate.vue'
import carriers from './carriers.vue'
import flowmap from './flowmap.vue'
import links from './links.vue'
Expand All @@ -37,7 +38,7 @@ export const plotlyCharts = {
}

// export all remaining charts/maps here:
export default Object.assign({ carriers, flowmap, links, map }, plotlyCharts)
export default Object.assign({ aggregate, carriers, flowmap, links, map }, plotlyCharts)

// ----- HELPER FUNCTIONS -----------------------------------------------------

Expand Down
Loading

0 comments on commit 8485d45

Please sign in to comment.