MCPcopy
hub / github.com/apache/echarts / detectSourceFormat

Function detectSourceFormat

test/lib/testHelper.js:3069–3088  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

3067 }
3068
3069 function detectSourceFormat(data) {
3070 if (data.length) {
3071 for (var i = 0, len = data.length; i < len; i++) {
3072 var item = data[i];
3073
3074 if (item == null) {
3075 continue;
3076 }
3077 else if (item.length) {
3078 return 'arrayRows';
3079 }
3080 else if (typeof data === 'object') {
3081 return 'objectRows';
3082 }
3083 }
3084 }
3085 else if (typeof data === 'object') {
3086 return 'keyedColumns';
3087 }
3088 }
3089
3090 function createObjectHTML(obj, key) {
3091 var html = isObject(obj)

Callers 1

createDataTableHTMLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…