/** * Chart output for HTML table. * * @copyright 2016 Frédéric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @module core/chart_output_htmltable */ define("core/chart_output_htmltable",["jquery","core/chart_output_base"],(function($,Base){function Output(){Base.prototype.constructor.apply(this,arguments),this._build()}return Output.prototype=Object.create(Base.prototype),Output.prototype._build=function(){this._node.empty(),this._node.append(this._makeTable())},Output.prototype._makeTable=function(){var node,value,tbl=$("
")),series.forEach((function(serie){node.append($(" | ").text(serie.getLabel()).attr("scope","col"))})),tbl.append(node);for(var rowId=0;rowId").text(labels[rowId]).attr("scope","row"));for(var serieId=0;serieId | |
---|