ursus <ursus.kirk (AT) ziggo (DOT) nl> wrote:
Quote:
Or you can use a web-view object and one of the free online API-s. Like
the google one. You need an active internet connection. |
I've tried some SVG functions, or other graphic ones (cf infra). But I
didn't succed, surely by a faulty implementation in the web-viewer :
what to write in ?
I tried this :
MacOSX 10.6.8 FMP 11.4
------------------------------------
<html>
<head>
<script type="text/javascript"
src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('number', 'Age');
data.addColumn('number', 'Weight');
data.addRows([
[8, 12],
[4, 5.5],
[11, 14],
[4, 4.5],
[3, 3.5],
[6.5, 7]
]);
var options = {
title: 'Age vs. Weight comparison',
hAxis: {title: 'Age', minValue: 0, maxValue: 15},
vAxis: {title: 'Weight', minValue: 0, maxValue: 15},
legend: 'none'
};
var chart = new
google.visualization.ScatterChart(document.getElem entById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>
-----------------------------------------
other :
-------------------------------------------
<?xml version=\"1.0\" standalone=\"no\"?>
<svg xmlns=\"http://www.w3.org/2000/svg\"
xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.0\"
width=\"900\" height=\"900\">
<defs>
<symbol id=\"s\" viewBox=\"0 0 3 3\">
<rect fill=\"#fff\" width=\"1\" height=\"1\"
x=\"1\" y=\"1\"/>
</symbol>
<symbol id=\"s1\" viewBox=\"0 0 900 900\">
<use xlink:href=\"#s\" x=\"0\" y=\"0\"
width=\"900\" height=\"900\"/>
<use xlink:href=\"#s\" x=\"0\" y=\"0\"
width=\"300\" height=\"300\"/>
<use xlink:href=\"#s\" x=\"300\" y=\"0\"
width=\"300\" height=\"300\"/>
</symbol>
</defs>
<rect width=\"900\" height=\"900\" fill=\"#000\"/>
<use xlink:href=\"#s\" x=\"0\" y=\"0\" width=\"900\"
height=\"900\"/>
<use xlink:href=\"#s4\" x=\"0\" y=\"0\" width=\"300\"
height=\"300\"/>
</svg>
---------------------------------------------
works nice in a inddependant file
--
Philippe Manet
en fait, c'est manet avant @