- D3.js 4.x Data Visualization(Third Edition)
- ?ndrew Rininsland Swizec Teller
- 140字
- 2021-07-02 23:20:27
Manually adding elements and shapes
An SVG image is a collection of elements rendered as shapes and comes with a set of seven basic elements; almost all of these are just an easier way to define a path:
- Straight lines (a path with two points)
- Rectangles (a path with four points and right angles)
- Circles (a round path)
- Ellipses (an oblong path)
- Polylines (a path comprising straight lines)
- Polygons (a path comprising straight lines that closes in on itself)
- Text (the only one that isn't a path)
You build SVG images by adding these elements to the document and defining some attributes. All of them can have a stroke style defining how the edge is rendered, a fill style defining how the shape is filled, and all of them can be rotated, skewed, or moved using the transform attribute.
推薦閱讀
- Python爬蟲開發:從入門到實戰(微課版)
- 深入實踐Spring Boot
- Microsoft Dynamics GP 2013 Reporting, Second Edition
- C語言實驗指導及習題解析
- Building Wireless Sensor Networks Using Arduino
- Beginning C++ Game Programming
- OpenStack Networking Essentials
- Learning Image Processing with OpenCV
- Managing Windows Servers with Chef
- 系統分析師UML用例實戰
- C語言從入門到精通(微視頻精編版)
- Building E-Commerce Solutions with WooCommerce(Second Edition)
- Serverless從入門到進階:架構、原理與實踐
- 零基礎入門Python數據分析與機器學習
- Activiti權威指南