cube-js/cube

fill missing dates with other values than zero

開放

#4,912 建立於 2022年7月14日

 (1 則留言) (0 個反應) (0 位負責人)Rust (1,965 個分叉)batch import
help wanted

倉庫指標

星標
 (19,563 顆星)
PR 合併指標
 (平均合併 5天 16小時) (30 天內合併 138 個 PR)

描述

Is your feature request related to a problem? Please describe. When executing resultset.series(), fillMissingDates is true by default, and the values of the missing dates are filled with 0. In some scenarios, I have a data with 0 as values, and it makes it hard to identify which is actual date and which is missed date in the result. An ability to set the missing date's value to null or to -1 it could be useful to some charts such as nivo (in nivo value: null is considered empty)

Describe the solution you'd like

  1. Add another option missingDateValue
  2. fillMissingDate will be either boolean or an object describing { enabled: boolean, value: number | null | etc.. }

貢獻者指南