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