summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/lib/dhtmlxGraph/samples/03_group
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2012-05-07 10:19:08 +0200
committerFabien Pinckaers <fp@tinyerp.com>2012-05-07 10:19:08 +0200
commitdd6de9b2006cfe5bc7be28d70addc321691d2746 (patch)
tree677a360fdc3b660add0e9589b74c10da3b562766 /addons/web_graph/static/lib/dhtmlxGraph/samples/03_group
parent16a2d354fc333d8fd3c0c638c5c2d74ffee8c580 (diff)
[IMP] replacing by flotr2, initial commit
bzr revid: fp@tinyerp.com-20120507081908-j0sfm5f84f0t32yg
Diffstat (limited to 'addons/web_graph/static/lib/dhtmlxGraph/samples/03_group')
-rw-r--r--addons/web_graph/static/lib/dhtmlxGraph/samples/03_group/01_basic.html96
-rw-r--r--addons/web_graph/static/lib/dhtmlxGraph/samples/03_group/02_scales.html126
2 files changed, 0 insertions, 222 deletions
diff --git a/addons/web_graph/static/lib/dhtmlxGraph/samples/03_group/01_basic.html b/addons/web_graph/static/lib/dhtmlxGraph/samples/03_group/01_basic.html
deleted file mode 100644
index 401dbdae24f..00000000000
--- a/addons/web_graph/static/lib/dhtmlxGraph/samples/03_group/01_basic.html
+++ /dev/null
@@ -1,96 +0,0 @@
-<!--conf
-<sample>
- <product version="2.6" edition="std"/>
- <modifications>
- <modified date="100609"/>
- </modifications>
- </sample>
- -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
-<head>
- <title>Grouping and Sorting</title>
-
- <script src="../../codebase/dhtmlxchart.js" type="text/javascript"></script>
- <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxchart.css">
-
- <style>
- .dhx_chart_title{
- padding-left:3px
- }
- </style>
- <script>
- var barChart;
-window.onload = function(){
- barChart = new dhtmlXChart({
- view:"bar",
- container:"chart_container",
- value:"#sales#",
- color:"#b3e025",
- gradient:true,
- border:false,
- width:70,
- label:"#id#",
- sort:{
- by:"#id#",
- as:"string",
- dir:"asc"
- },
- group:{
- by:"#year#",
- map:{
- sales:["#sales#","sum"]
- }
- },
- padding:{
- bottom:0
- }
- })
- barChart.load("../common/stat.xml");
-}
-
- function groupA(){
- barChart.group({
- by:"#company#",
- map:{
- sales:["#sales#","sum"]
- }
- });
- barChart.refresh();
- }
-
- function groupB(){
- barChart.group({
- by:"#year#",
- map:{
- sales:["#sales#","sum"]
- }
- });
- }
-
- function groupC(){
- barChart.group({
- by:"#year#",
- map:{
- sales:["#sales#","max"]
- }
- });
- }
-
- </script>
-</head>
-<body>
- <p>It's possible to group chart data by a certain property. You may use group method or group property in a chart constructor.</p>
- <div id="chart_container" style="width:600px;height:300px;border:1px solid #A4BED4;"></div>
-
-
- <br/>
- <input type="button" name="some_name" value="Group by" onclick="window['group'+document.getElementById('groupby').value]()">
- <select name="groupby" id="groupby">
- <option value="A">company</option>
- <option value="B" SELECTED>year (total sales)</option>
- <option value="C">year (max sales)</option>
- </select>
-
-</body>
-</html>
diff --git a/addons/web_graph/static/lib/dhtmlxGraph/samples/03_group/02_scales.html b/addons/web_graph/static/lib/dhtmlxGraph/samples/03_group/02_scales.html
deleted file mode 100644
index 75746062b29..00000000000
--- a/addons/web_graph/static/lib/dhtmlxGraph/samples/03_group/02_scales.html
+++ /dev/null
@@ -1,126 +0,0 @@
-<!--conf
-<sample>
- <product version="2.6" edition="std"/>
- <modifications>
- <modified date="100609"/>
- </modifications>
- </sample>
- -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
-<head>
- <title>Scales and grouping</title>
-
- <script src="../../codebase/dhtmlxchart.js" type="text/javascript"></script>
- <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxchart.css">
-
- <style>
- .dhx_chart_title{
- padding-left:3px
- }
- </style>
- <script>
- var barChart;
- window.onload = function(){
- barChart = new dhtmlXChart({
- view:"bar",
- container:"chart_container",
- value:"#sales#",
- color:"#b3e025",
- gradient:true,
- border:false,
- width:70,
- yAxis:{},
- xAxis:{
- template:"#id#",
- title:"Sales per year (all companies)"
- },
- label:"#sales#",
- sort:{
- by:"#id#",
- as:"string",
- dir:"asc"
- },
- group:{
- by:"#year#",
- map:{
- sales:["#sales#","sum"]
- }
- }
- })
- barChart.load("../common/stat.xml");
- }
-
- function groupA(){
- barChart.define("xAxis",{
- template:"#id#",
- title:"Total sales per companies"
- });
- barChart.define("yAxis",{});
- barChart.group({
- by:"#company#",
- map:{
- sales:["#sales#","sum"]
- }
- });
- barChart.refresh();
- }
-
- function groupB(){
- barChart.define("xAxis",{
- template:"#id#",
- title:"Sales per year (all companies)"
- });
- barChart.define("yAxis",{});
- barChart.group({
- by:"#year#",
- map:{
- sales:["#sales#","sum"]
- }
- });
- }
-
- function groupC(){
- barChart.define("xAxis",{
- template:"#id#",
- title:"Maximum sales per year"
- });
- barChart.define("yAxis",{});
- barChart.group({
- by:"#year#",
- map:{
- sales:["#sales#","max"]
- }
- });
- }
-
- function sort(direction){
-
- barChart.define("sort",{
- by:"#sales#",
- dir:direction,
- as:"int"
- });
- barChart.render();
- }
- </script>
-</head>
-<body>
- <p>To update configuration properties after grouping you need to cal define method with new settings.</p>
- <div id="chart_container" style="width:600px;height:300px;border:1px solid #A4BED4;"></div>
- <br/>
- <input type="button" name="some_name" value="Group by" onclick="window['group'+document.getElementById('groupby').value]()">
- <select name="groupby" id="groupby">
- <option value="A">company</option>
- <option value="B" SELECTED>year (total sales)</option>
- <option value="C">year (max sales)</option>
- </select>
- <br/><br/>
- <input type="button" name="some_name" value="Sort by sales" onclick="sort(document.getElementById('dir').value)">
- <select name="dir" id="dir">
- <option value="asc" selected>asc</option>
- <option value="desc" >desc</option>
- </select>
-
-</body>
-</html>