[IMP]show stackbarchart when there is group and improved code for legend and color.

bzr revid: kch@tinyerp.com-20110506124108-ov131ru1os1acel6
This commit is contained in:
Kunal Chavda (OpenERP)
2011-05-06 18:11:08 +05:30
parent 6b56e10d11
commit e5dc3d5d54
2 changed files with 192 additions and 110 deletions
@@ -1,17 +1,12 @@
<template>
<t t-name="GraphView">
<h2 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h2>
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<div t-att-id="chart+'chart'" style="width:900px;height:500px;border:1px solid #A4BED4;"></div>
</td>
<!--<td><div id="barchart" style="width:900px;height:500px;border:1px solid #A4BED4;"></div></td>
<td>
<div id="piechart" style="width:600px;height:250px;border:1px solid #A4BED4;"></div>
<div id="stackedchart" style="width:600px;height:250px;border:1px solid #A4BED4;"></div>
</td> -->
</tr>
</table>
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<div t-att-id="chart+'chart'" style="width:900px;height:500px;border:1px solid #A4BED4;"></div>
</td>
</tr>
</table>
</t>
</template>