(points, eachSpacing, columnLen, index, config, opts)
| 1159 | } |
| 1160 | |
| 1161 | function fixColumeData(points, eachSpacing, columnLen, index, config, opts) { |
| 1162 | return points.map(function(item) { |
| 1163 | if (item === null) { |
| 1164 | return null; |
| 1165 | } |
| 1166 | item.width = Math.ceil((eachSpacing - 2 * config.columePadding) / columnLen); |
| 1167 | |
| 1168 | if (opts.extra.column && opts.extra.column.width && +opts.extra.column.width > 0) { |
| 1169 | item.width = Math.min(item.width, +opts.extra.column.width); |
| 1170 | } |
| 1171 | if (item.width <= 0) { |
| 1172 | item.width = 1; |
| 1173 | } |
| 1174 | item.x += (index + 0.5 - columnLen / 2) * item.width; |
| 1175 | return item; |
| 1176 | }); |
| 1177 | } |
| 1178 | |
| 1179 | function fixColumeMeterData(points, eachSpacing, columnLen, index, config, opts, border) { |
| 1180 | return points.map(function(item) { |
no test coverage detected