To add a chart to your page, you will need exactly one minute. We will use AWeb library. Let's connect the library to the project:
<!DOCTYPE HTML>
<html>
<head>
<title>Sample project</title>
<!--
<link rel="stylesheet" type="text/css" href="http://a-web.me/styles/default/a-web.css" >
<!--
<script type="text/javascript" src="http://a-web.me/scripts/a-web.js"></script>
</head>
<body>
</body>
</html>
Chart is created by tag "a:chart
", chart properties are specified in the tag attributes. The x-axis will display the values from 1 to 3, scale 1. The y-axis will display the values from 1 to 10, scale 5. Chart passes through: (1,0) (2,8) (3,0).
Our example will look like this:
<!DOCTYPE HTML>
<html>
<head>
<title>Sample project</title>
<!--
<link rel="stylesheet" type="text/css" href="http://a-web.me/styles/default/a-web.css" >
<!--
<script type="text/javascript" src="http://a-web.me/scripts/a-web.js"></script>
</head>
<body>
<!--
<a:chart a:type="UI/Chart"
a:axis-x="1..3/1"
a:axis-y="0..10/5"
a:points-1="1 0, 2 8, 3 0"
>
</a:chart>
</body>
</html>
The chart is created on the client side in the browser without connecting to the server. Enjoy!
Other Articles About the Library
I decided to link the articles, because there is not much information about the library on the internet: