templates/assets/export-csv.js
Function getDataRows
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Highcharts.Chart.prototype.getDataRows = function () {
var options = (this.options.exporting || {}).csv || {},
xAxis,
xAxes = this.xAxis,
rows = {},
File export-csv.js
has 285 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* A Highcharts plugin for exporting data from a rendered chart as CSV, XLS or HTML table
*
* Author: Torstein Honsi
* Licence: MIT
Function getContent
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getContent(chart, href, extension, content, MIME) {
var a,
blobObject,
name,
options = (chart.options.exporting || {}).csv || {},
Function getCSV
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Highcharts.Chart.prototype.getCSV = function (useLocalDecimalPoint) {
var csv = '',
rows = this.getDataRows(),
options = (this.options.exporting || {}).csv || {},
itemDelimiter = options.itemDelimiter || ',', // use ';' for direct import to Excel
Function getTable
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Highcharts.Chart.prototype.getTable = function (useLocalDecimalPoint) {
var html = '<table><thead>',
rows = this.getDataRows();
// Transform the rows to HTML
Function getContent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getContent(chart, href, extension, content, MIME) {