提交 3c0d2c6d 编写于 作者: J Jason Park

fix #100

上级 03663e2a
...@@ -136,7 +136,7 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), { ...@@ -136,7 +136,7 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
processStep: function (step, options) { processStep: function (step, options) {
switch (step.type) { switch (step.type) {
case 'notify': case 'notify':
if (step.v === 0 || step.v) { if (step.v !== undefined) {
var $row = this.$table.find('.mtbl-row').eq(step.x); var $row = this.$table.find('.mtbl-row').eq(step.x);
var $col = $row.find('.mtbl-col').eq(step.y); var $col = $row.find('.mtbl-col').eq(step.y);
$col.text(refineByType(step.v)); $col.text(refineByType(step.v));
......
...@@ -75,7 +75,7 @@ ChartTracer.prototype = $.extend(true, Object.create(Tracer.prototype), { ...@@ -75,7 +75,7 @@ ChartTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
processStep: function (step, options) { processStep: function (step, options) {
switch (step.type) { switch (step.type) {
case 'notify': case 'notify':
if (step.v) { if (step.v !== undefined) {
this.chart.config.data.datasets[0].data[step.s] = step.v; this.chart.config.data.datasets[0].data[step.s] = step.v;
this.chart.config.data.labels[step.s] = step.v.toString(); this.chart.config.data.labels[step.s] = step.v.toString();
} }
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册