Commit 23bb27d4 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_travel_expense: display correctly table

parent 2f86aadc
......@@ -94,15 +94,11 @@
}
bar_data.push(value_list);
}
var data = {
gadget.props.data = {
labels: label_list,
series: bar_data,
};
new Chartist.Bar(gadget.props.element.querySelector('.ct-chart'),
data,
{seriesBarDistance: 10,
axisX: {offset: 60},
});
return gadget.updateHeader({
title: "Report"
});
......@@ -119,7 +115,11 @@
/////////////////////////////////////////
.declareService(function () {
var gadget = this;
new Chartist.Bar(gadget.props.element.querySelector('.ct-chart'),
gadget.props.data,
{seriesBarDistance: 10,
axisX: {offset: 60},
});
return new RSVP.Queue()
.push(function () {
return gadget.props.deferred.promise;
......
......@@ -244,7 +244,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>956.55822.38684.22630</string> </value>
<value> <string>956.58658.21925.32853</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1485251283.29</float>
<float>1486391931.12</float>
<string>UTC</string>
</tuple>
</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