Skip to content

Commit

Permalink
feature: show namespace chart
Browse files Browse the repository at this point in the history
  • Loading branch information
fariss committed Aug 1, 2024
1 parent b229048 commit b74738a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions webui/src/components/NamespaceChart.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div ref="chartRef" class="namespace-chart"></div>
<div ref="chartRef" class="w-screen h-screen"></div>
</template>

<script setup>
Expand Down Expand Up @@ -99,7 +99,7 @@ const renderChart = () => {
parents: sunburstData.parents,
values: sunburstData.values,
outsidetextfont: { size: 20, color: '#377eb8' },
leaf: { opacity: 0.5 },
leaf: { opacity: 0.6 },
marker: { line: { width: 2 } },
branchvalues: 'total'
}
Expand All @@ -124,10 +124,3 @@ watch(
{ deep: true }
)
</script>

<style scoped>
.namespace-chart {
width: 100%;
height: 600px;
}
</style>
4 changes: 2 additions & 2 deletions webui/src/views/ImportView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { rdocData, isValidVersion, loadRdoc } = useRdocLoader()
const showCapabilitiesByFunctionOrProcess = ref(false)
const showLibraryRules = ref(false)
const showNamespaceChart = ref(true)
const showNamespaceChart = ref(false)
const flavor = computed(() => rdocData.value?.meta.flavor)
Expand Down Expand Up @@ -104,6 +104,6 @@ onMounted(() => {
:show-capabilities-by-process="showCapabilitiesByFunctionOrProcess"
:show-library-rules="showLibraryRules"
/>
<NamespaceChart v-else-if="showNamespaceChart && !showCapabilitiesByFunctionOrProcess" :data="rdocData" />
<NamespaceChart v-else-if="showNamespaceChart" :data="rdocData" />
</template>
</template>

0 comments on commit b74738a

Please sign in to comment.