Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
D3 を使用して凡例にラベルを付ける数値のサイズを大きくしたいと考えています。凡例は次のように作成されます。
map.legend_axes = d3.svg.axis() .scale(map.legend_scales) .orient('bottom') .tickSize(map.settings.legend.ticks);
数値のサイズを大きくするために渡すことができる引数はありますか?
フォントサイズを大きくするCSSクラスを追加してから、そのクラスを軸上のテキストに追加します。
d3.selectAll("axisElement") .classed("large-font", true);