HTMLcopy
x
1
<div id="container"></div>
2
3
CSScopy
3
1
html, body, #container { width: 1300px; height: 1300px; margin: 0; padding: -100px;}
2
radial #DAA520 #00FFFF #FFAEB9 #90EE90 #FFFF00 [⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀]
3
Добавлены ветви братьев Кинйа: Кутлумбет, Тупей и Кутуй- они тоже Буляковы.
JavaScriptcopy
190
1
anychart.onDocumentReady(function () {
2
3
// create data
4
var data = [
5
{name: "М А Ж И Т\nНИЯЗГУЛ\nШАМИГУЛ 846\nМУХАМАТВАЛИ 821 \nМУХАМАТАМИН 797\nК И Н Й А 758 \nюртовый старшина,\nАМАНГИЛЬДЫ≈700\n▲\n Б У Л Я К ≈660", normal:{fill: "#DAA520"}, children:
6
7
[ {name:"Жауат",children:
8
[{name:"Марат",children:
9
[{name:"Марат",value: 30}]},
10
{name:"Гузяль",children:
11
[{name:"Аида",children:
12
[{name:"Ильназ",value: 30}]}]},
13
{name:"Гульнур",children:
14
[{name:"Радмир",value: 30},
15
{name:"Эльза",value: 30},
16
{name:"Юнир",value: 30},
17
{name:"Руслан",value: 30}]},
18
{name:"Гульниса",children:
19
[{name:"Алия",children:
20
[{name:"Руслан",value: 30}]},
21
{name:"Лия",children:
22
[{name:"Александр",value: 30} ]}]}, ]},
23
24
{name:"Альмира ",children:
25
[{name:"Вадим" ,value: 30},
26
27
{name:"Нажмутдин ",children:
28
[{name:"Лариса",children:
29
[{name:"Алина",value: 30},
30
{name:"Марат",value: 30},]},
31
{name:"Михаил",children:
32
[{name:"Эмиль",value: 30} ]} ]},
33
34
{name:"Жамиль",children:
35
[{name:"КОМСОМОЛ(2)",value: 30},
36
{name:"КОМСОМОЛ(2)",value: 30}, ]},
37
38
{name:"Альфия",children:
39
[{name:"Алексей",children:
40
[{name:"Игорь",value: 30}]},
41
{name:"Светлана",children:
42
[{name:"Вячеслав",value: 30},
43
{name:"Александра⠀⠀⠀",value: 30} ]} ]},
44
{name:"Галима ",children:
45
[{name:"Сергей",children:
46
[{name:"Кристина⠀",value: 30} ]},
47
{name:"Галина",children:
48
[{name:"Диана",value: 30} ]}]},
49
{name:"Маулия" ,children:
50
[{name:"Елена",children:
51
[{name:"Саша",value: 30},
52
{name:"Вадим",value: 30},
53
{name:"Артур",value: 30},
54
{name:"Альберт",value: 30}, ]},
55
{name:"Мируэта",children:
56
[{name:"Влад",value: 30},
57
{name:"Иван",value: 30}, ]},
58
{name:"Асия",value: 30}, ]},
59
{name:"Гали",children:
60
[{name:"Руслан",value: 30},
61
{name:"Людмила",children:
62
[{name:"Аделина",value: 30},
63
{name:"Азалия",value: 30}, ]},
64
{name:"Юлия",children:
65
[{name:"Карина",value: 30} ]} ]},
66
{name:"Рашит ",children:
67
[{name:"Марат",value: 30},
68
{name:"Венера",children:
69
[{name:"Рената",value: 30},
70
{name:"Римма",value: 30}]}]} ]},
71
72
73
74
75
76
77
78
79
80
81
82
83
]} ];
84
85
// create a chart and set the data
86
var chart = anychart.sunburst(data, "as-tree");
87
chart.labels().adjustFontSize(false);
88
chart.level().labels().fontSize(11);
89
//chart.labels().wordWrap("break-word");
90
91
// set the start angle
92
chart.startAngle(13);
93
94
// hide the first level
95
chart.level(9).enabled("false");
96
chart.radius("100%");
97
chart.level(0).thickness("14%");
98
99
// set the thickness of leaves
100
chart.level(1).thickness("10%");
101
chart.level(2).thickness("14%");
102
chart.level(3).thickness("17%");
103
chart.level(4).thickness("13%");
104
chart.level(5).thickness("11%");
105
chart.level(6).thickness("8%");
106
chart.level(7).thickness("8%");
107
chart.level(8).thickness("8%");
108
//chart.leaves().thickness("10%");
109
110
// set the position of labels после дате
111
chart.level().labels().position("radial");
112
// chart.level(1).labels().position("circular");
113
// chart.level(2).labels().position("circular");
114
115
// chart.level(6).labels().position("circular");
116
117
//chart.leaves().format("<span style='align:center'>{%name}</span>");
118
//chart.leaves().level().Align("center");
119
120
// set chart labels settings
121
chart.labels().hAlign('center');
122
chart.labels().vAlign('middle');
123
// chart.labels().textAlign="center";
124
// configure the visual settings of the chart
125
chart.fill(function () { return this.parent ?
126
anychart.color.lighten(this.parentColor, 0.2) :
127
this.mainColor; });
128
chart.normal().stroke("#000000", 0.3);
129
130
// chart.labels().width("100%");
131
// chart.labels().height("500%");
132
chart.labels().padding("-68 " ) ;
133
// chart.labels().margin("-50") ;
134
chart.labels().fontColor("#000000");
135
chart.labels().fontWeight("1000");
136
chart.title(" ");
137
138
// Set line height.
139
//chart.level(3).labels().lineHeight(0.75);
140
//chart.level(4).labels().lineHeight(0.75);
141
//chart.level(5).labels().lineHeight(0.75);
142
//chart.level(6).labels().lineHeight(0.75);
143
144
// set the calculation mode
145
chart.calculationMode("parent-independent");
146
147
// format chart labels
148
chart.labels().format('{%Name}');
149
150
//ordinal-from-leaves parent-independent word-spacing: 15px ;
151
//chart.leaves().format("<span style='align:center'>{%name}</span>");
152
//.label{text-align: center; } align right left hspace="75" textAlign="center";
153
154
// set the container id
155
// chart.container("container");
156
// ◄▼►▲ ≈ \n
157
//var stage = acgraph.create('container');
158
//stage.rect(30, 30, 60, 50);
159
160
//var simpleText = stage.text(40, 30, 'Top text');
161
//simpleText.height(50);
162
//simpleText.width(60);
163
164
// Sets vertical align.
165
//simpleText.vAlign('middle');
166
167
//var stage = acgraph.create('контейнер');
168
//стадия.прямая кишка(30, 30, 60, 50);
169
170
//var simpleText = stage.text(40, 30, 'верхний текст');
171
//простой текст.высота(50);
172
//простой текст.ширина(60);
173
174
// Устанавливает вертикальное выравнивание.
175
//простой текст.vAlign('средний');
176
177
// <div overflow: visible; width: 50%; ></div>
178
179
// text {font-family: Arial, sans-serif;
180
// font-size: 12px; width:150px;
181
// overflow:visible; white-space:nowrap;
182
// overflow:visible;}
183
184
// html, body { overflow: auto !important; }
185
186
// chart.level().labels().overflow("visible");
187
// hart.labels().overflow(visable);
188
// chart.level().overflow (false);
189
190
chart.container("container").draw(); });