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.
表示されている円グラフがコンテナの幅と高さを完全に利用していないことに気付きました。
若干の空白が見えます。以下添付画像。
div に境界線を引きました。そして、パイが幅と高さを完全に利用していないことは明らかです。
どうすればこの問題を解決できますか?
どんな助けでも大歓迎です。
前もって感謝します。
デフォルトの円グラフ レンダラーには 20px のパディングがあるようです。次のようにパディングを調整して、必要に応じて減らします。
jQuery("#'. $id .'").jqplot([your data here], { seriesDefaults: { renderer: jQuery.jqplot.PieRenderer, rendererOptions: { padding: 10 } } });