Skip to content

Commit

Permalink
Sunburst
Browse files Browse the repository at this point in the history
  • Loading branch information
sv2 committed Aug 28, 2020
1 parent 2a7bc23 commit 850fa9b
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/components/d3/DbSunburst.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export default {
.attr('transform', d => labelTransform(d))
.attr('fill-opacity', d => +labelVisible(d))
.attr('dy', '0.35em')
.attr('class','db-sunburst-label')
.attr('clip-path', function(d, i) {
return 'url(#cp-' + i + ')';
})
Expand Down Expand Up @@ -282,10 +283,20 @@ export default {
}
};
</script>
<style>
<style lang="scss">
.db-sunburst {
width: 100%;
height: 100%;
display: block;
.db-sunburst-label {
font-size: 16px;
font-family: 'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
}
.db-dark {
.db-sunburst-label {
fill: #bdbdbd;
}
}
</style>
3 changes: 2 additions & 1 deletion src/demo/layouts/Default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export default {
{ title: 'Dynamic Timelines', link: '/dynamictimelines', icon: 'schedule' },
{ title: 'Dynamic Timelines Dygraphs', link: '/dynamictimelinesdygraphs', icon: 'schedule' },
{ title: 'Dynamic Sales Dashboard', link: '/dynamicsalesdashboard', icon: 'schedule' },
{ title: 'Sales Funnel Dashboard', link: '/salesfunnel', icon: 'filter_alt' }
{ title: 'Sales Funnel Dashboard', link: '/salesfunnel', icon: 'filter_alt' },
{ title: 'Sales Sunburst Dashboard', link: '/salessunburst', icon: 'camera' }
]
},
{
Expand Down
Loading

0 comments on commit 850fa9b

Please sign in to comment.