- 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.
推薦閱讀
- Learning Python Web Penetration Testing
- C語言程序設計案例教程(第2版)
- 騰訊iOS測試實踐
- Mastering Ubuntu Server
- 機器學習與R語言實戰
- Python算法指南:程序員經典算法分析與實現
- HTML5從入門到精通(第4版)
- 編程與類型系統
- Qt5 C++ GUI Programming Cookbook
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- Fastdata Processing with Spark
- MongoDB Cookbook
- Visual FoxPro數據庫程序設計
- 谷歌JAX深度學習從零開始學
- 接口自動化測試持續集成:Postman+Newman+Git+Jenkins+釘釘