define(["jquery","core/chart_output_base"],function(a,b){function c(){b.prototype.constructor.apply(this,arguments),this._build()}return c.prototype=Object.create(b.prototype),c.prototype._build=function(){this._node.empty(),this._node.append(this._makeTable())},c.prototype._makeTable=function(){var b,c,d,e=a(""),f=this._chart,g=f.getLabels(),h=g.length>0,i=f.getSeries(),j=i[0].getCount();e.addClass("chart-output-htmltable generaltable"),null!==f.getTitle()&&e.append(a(""),h&&b.append(a("
").text(f.getTitle())),b=a("
")),i.forEach(function(c){b.append(a("").text(c.getLabel()).attr("scope","col"))}),e.append(b);for(var k=0;k"),g.length>0&&b.append(a("").text(g[k]).attr("scope","row"));for(var l=0;l").text(c));e.append(b)}return e},c.prototype.update=function(){this._build()},c});