Have a nice day, everyone! I had a problem - you need to display the values of the properties of objects that are themselves part of the object. That is, there is a json file grouped by the organ property, and then by the disease property, but when I try to extract the disease value, not the disease value itself is extracted, but what is attached.
The number of converges, but the value is not displayed.
function importData() { d3.json('data/mydata.json', function (data) { var canvas = d3.select('.importData') .data(data) .append('svg') .attr('width', 1000) .attr('height', 700); var disease = d3.nest() .key(function(d) { return d.organ;}).sortKeys(d3.ascending) .key(function(d) { return d.disease;}).sortKeys(d3.ascending) .entries(data); canvas.selectAll('text') // Описание визуализации .data(disease) .enter() .append('text') .attr('fill', '#000000') .attr('y', function (d, i) {return i * 80 + 70;}) .attr('x', 10) .text(function (d) { return d.values; }) })}