(minRange, maxRange, points, opts)
| 1438 | } |
| 1439 | |
| 1440 | function calMarkLineData(minRange, maxRange, points, opts) { |
| 1441 | let spacingValid = opts.height - opts.area[0] - opts.area[2]; |
| 1442 | for (let i = 0; i < points.length; i++) { |
| 1443 | let height = spacingValid * (points[i].value - minRange) / (maxRange - minRange); |
| 1444 | points[i].y = opts.height - Math.round(height) - opts.area[2]; |
| 1445 | } |
| 1446 | return points; |
| 1447 | } |
| 1448 | |
| 1449 | function contextRotate(context, opts) { |
| 1450 | if (opts.rotateLock !== true) { |