1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

clamp width scale, reorder elements to hide AA

This commit is contained in:
cTn 2014-04-13 18:04:08 +02:00
parent 000ff998e1
commit f91c73a38b
3 changed files with 12 additions and 9 deletions

View file

@ -44,6 +44,7 @@ function initGraphHelpers(selector, sampleNumber, heightDomain) {
var helpers = {selector: selector, dynamicHeightDomain: !heightDomain};
helpers.widthScale = d3.scale.linear().
clamp(true).
domain([(sampleNumber - 299), sampleNumber]).
range([0, width]);