Commit fb5dc2a033308af24929c3d597fda708d0c9f642

Authored by Goutte
1 parent 2359edf8

Fix a nasty bug, urgently ! This one is on me.

CHANGELOG.md
... ... @@ -41,6 +41,11 @@ et prendre aussi
41 41 - [ ] Find a way to handle the huge amount of data files for Earth (thousands!)
42 42  
43 43  
  44 +## 1.0.1
  45 +
  46 +- [x] Fix an issue with the Time Series axes
  47 +
  48 +
44 49 ## 1.0.0
45 50  
46 51 - [x] Fix a bug with data that is offset by one hour.
... ...
web/static/js/swapp.js
... ... @@ -498,7 +498,7 @@
498 498 bottom: 30,
499 499 left: 80
500 500 };
501   - this.xScale = d3.scaleUtc().domain(this.xDataExtent);
  501 + this.xScale = d3.scaleTime().domain(this.xDataExtent);
502 502 this.yScale = d3.scaleLinear().domain(this.yDataExtent);
503 503 formatMillisecond = d3.utcFormat(".%L");
504 504 formatSecond = d3.utcFormat(":%S");
... ...
web/static/js/swapp.ls
... ... @@ -139,7 +139,7 @@ https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE
139 139 this
140 140  
141 141 resize: ->
142   - @orbits?.resize();
  142 + @orbits?.resize()
143 143 @time_series.forEach((ts) -> ts.resize())
144 144 this
145 145  
... ... @@ -385,10 +385,14 @@ export class TimeSeries
385 385 left: 80
386 386 }
387 387  
388   - @xScale = d3.scaleUtc().domain(@xDataExtent)
389   - @yScale = d3.scaleLinear().domain(@yDataExtent)
  388 + # https://github.com/d3/d3-scale/blob/master/src/utcTime.js
  389 + # scaleUtc collides with our custom multiFormat ticks
  390 +# @xScale = d3.scaleUtc().domain(@xDataExtent)
  391 + @xScale = d3.scaleTime().domain(@xDataExtent)
  392 +
390 393 # Domain on a log scale MUST NOT cross zero
391 394 # @yScale = d3.scaleLog().domain(@yDataExtent)
  395 + @yScale = d3.scaleLinear().domain(@yDataExtent)
392 396  
393 397 formatMillisecond = d3.utcFormat(".%L")
394 398 formatSecond = d3.utcFormat(":%S")
... ...