weewx-wdc icon indicating copy to clipboard operation
weewx-wdc copied to clipboard

[BUG] xAxis: Date mismatch in combined charts

Open Daveiano opened this issue 1 year ago • 0 comments

A mismatching of the date on the xAxis can be noticed when using the cumulative aggregation:

gh-181-01

gh-181-2

weewx-wdc-181-3

To investigate

  • Could be something with start vs end timestamp (https://github.com/Daveiano/weewx-wdc/blob/3.x/skins/weewx-wdc/src/js/index.tsx#L133)
return {
  x: item[0],
  y: item[2],
  start: item[0],
  end: item[1],
};
  • Could be something with the xAxis scale (https://github.com/Daveiano/weewx-wdc/blob/3.x/skins/weewx-wdc/src/js/diagrams/d3/combined.tsx#L272)

Daveiano avatar Jul 07 '23 21:07 Daveiano