andreasgerstmayr / fava-portfolio-returns

fava-portfolio-returns shows portfolio returns in Fava
GNU General Public License v2.0
36 stars 2 forks source link

log(Cash Flows) shows infinite bar #14

Closed fdw closed 4 months ago

fdw commented 5 months ago

Maybe (probably) I'm doing something wrong, but I see a very large bar in the "log(Cash Flows)" graph. There is no value on the y-axis, and when toggling Logarithmic off, the bar vanishes completely. The tooltip also shows -0.00€.

On this date, I moved many shares from one depot to another, so there was some movement, but without any value difference. I could imagine that taking the log of that 0 leads to unexpected results. Is that possible or did I make a mistake somewhere?

andreasgerstmayr commented 4 months ago

I could imagine that taking the log of that 0 leads to unexpected results

That's spot on. I fixed this issue recently in the upstream echarts PR but didn't rebuild my fork of echarts yet. I'll merge #18 once CI passes.

andreasgerstmayr commented 4 months ago

Should be fixed now. Let me know if it's still an issue.