MCPcopy Create free account
hub / github.com/CoderOpen/waimai / calMarkLineData

Function calMarkLineData

front/components/u-charts/u-charts.js:1440–1447  ·  view source on GitHub ↗
(minRange, maxRange, points, opts)

Source from the content-addressed store, hash-verified

1438}
1439
1440function 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
1449function contextRotate(context, opts) {
1450 if (opts.rotateLock !== true) {

Callers 1

drawMarkLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected