Web chart Getting Started (2) web-side graphics Rendering svg,vml, HTML5 canvas Simple example

Source: Internet
Author: User
Tags xmlns

Usage and examples of VML

After you introduce namespaces, you can draw graphics directly by using labels.

Example: Draw a line from coordinates (20,20) to coordinates (200,200).

 

Description: Xmlns:v = "URN:SCHEMAS-MICROSOFT-COM:VML" is essential, is the introduction of VML namespaces.

Better Learning materials:

1. Http://msdn.microsoft.com/zh-cn/library/bb263897.aspx of VML Learning on MSDN

2. http://www.itlearner.com/code/vml/index.html a relatively simple and clear Chinese introductory course

3. http://www.dynamicdrive.com/dynamicindex11/editor.htm Online rendering of the VML map editor, drawing completion can produce the corresponding XML Code.

SVG usage and example SVG is used in HTML in two different ways:

1. Like VML, the SVG label is used directly after the namespace is imported. (Some tutorials say this approach is not available, presumably the development of SVG supports this approach)

 

It's simple, it's drawing a line, and the syntax is similar to VML.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.