{"version":"1.0","type":"rich","title":"不规则八边形边上绘制柱形图","description":"This example draws an irregular octagon on an SVG canvas over a background image, then places a blue rotated rectangle at the midpoint of each edge to represent a bar chart. The rectangle’s rotation angle is computed from the edge’s slope using `Math.atan2`, and each rectangle is positioned via the `transform` attribute with `rotate`. The code uses D3 v6 to append SVG elements, including a polygon for the octagon and rects for the bars, with hardcoded vertex coordinates and a fixed rectangle width and height.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/812a4bf2fc1842a2a164033095fbbdc0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}