Commit 21feb230 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_travel_expense: display correctly table

parent ebc9943d
...@@ -94,15 +94,11 @@ ...@@ -94,15 +94,11 @@
} }
bar_data.push(value_list); bar_data.push(value_list);
} }
var data = { gadget.props.data = {
labels: label_list, labels: label_list,
series: bar_data, series: bar_data,
}; };
new Chartist.Bar(gadget.props.element.querySelector('.ct-chart'),
data,
{seriesBarDistance: 10,
axisX: {offset: 60},
});
return gadget.updateHeader({ return gadget.updateHeader({
title: "Report" title: "Report"
}); });
...@@ -119,7 +115,11 @@ ...@@ -119,7 +115,11 @@
///////////////////////////////////////// /////////////////////////////////////////
.declareService(function () { .declareService(function () {
var gadget = this; var gadget = this;
new Chartist.Bar(gadget.props.element.querySelector('.ct-chart'),
gadget.props.data,
{seriesBarDistance: 10,
axisX: {offset: 60},
});
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return gadget.props.deferred.promise; return gadget.props.deferred.promise;
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>956.55822.38684.22630</string> </value> <value> <string>956.58658.21925.32853</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1485251283.29</float> <float>1486391931.12</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment