(meta, data, start, count)
| 151 | } |
| 152 | |
| 153 | function parseArrayOrPrimitive(meta, data, start, count) { |
| 154 | const iScale = meta.iScale; |
| 155 | const vScale = meta.vScale; |
| 156 | const labels = iScale.getLabels(); |
| 157 | const singleScale = iScale === vScale; |
| 158 | const parsed = []; |
| 159 | let i, ilen, item, entry; |
| 160 | |
| 161 | for (i = start, ilen = start + count; i < ilen; ++i) { |
| 162 | entry = data[i]; |
| 163 | item = {}; |
| 164 | item[iScale.axis] = singleScale || iScale.parse(labels[i], i); |
| 165 | parsed.push(parseValue(entry, item, vScale, i)); |
| 166 | } |
| 167 | return parsed; |
| 168 | } |
| 169 | |
| 170 | function isFloatBar(custom) { |
| 171 | return custom && custom.barStart !== undefined && custom.barEnd !== undefined; |
no test coverage detected