Код: Выделить всё
sample = {'ObjectInterpolator': 1629, 'PointInterpolator': 1675, 'RectangleInterpolator': 2042}
Код: Выделить всё
{
"name": "interpolator",
"children": [
{"name": "ObjectInterpolator", "size": 1629},
{"name": "PointInterpolator", "size": 1675},
{"name": "RectangleInterpolator", "size": 2042}
]
}
Вы можете догадаться, что я хочу создать древовидную карту d3.>
Подробнее здесь: https://stackoverflow.com/questions/170 ... -json-file
Мобильная версия