简体   繁体   English

在d3旭日形图中控制分隔线的宽度

[英]control width of separation lines in d3 sunburst diagram

I'm using a modified version of this code in an app showing a tree-like structure using a sunburst diagram, and I was wondering if there's anyway to control the width of the thin white lines separating each wedge. 我在应用程序中使用此代码的修改版本, 应用程序使用森伯斯特图显示了树状结构,并且我想知道是否仍然可以控制分隔每个楔形的细白线的宽度。

d3朝阳图

There's nothing explicitly set in the code regarding this lines, and a quick look of the documentation of the d3 library regarding this layout ( here ) does not mention anything about them, or at least I did not find anything about it. 关于此行的代码中没有明确设置任何内容,关于此布局的d3库文档的快速浏览( 此处 )未提及任何内容,或者至少我没有找到任何相关内容。

Its applying the css property style stroke:rgb(255, 255, 255); 它应用css属性样式stroke:rgb(255, 255, 255);
The css property to adjust the thickness of the stroke is stroke-width 调整笔触粗细的css属性是stroke-width

I will warn you though, the larger your stroke width, the "smaller" your colored block will appear to be. 不过,我会警告您,您的笔触宽度越大,您的彩色块会显得“越小”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM