Sum columns in timevis
kylegross opened this issue · 3 comments
Hi there,
I am trying to sum columns in the timevis timeline, which would be responsive when different assets in the timeline are moved.
The numbers in each box on the timeline show the cost of that specific phase, and I need a way to get the total sum per various timeframes (for instance, per month). Is that possible?
In addition, I need to edit the timeline zoom so that it does not show times, so the lowest level when zooming is the day. I also need to change the timeline format so that the dates are shown as m-d-y, but when I edited your prettyDate function, no changes to the format are displayed. If you have any ideas on how to edit these two things, as well as adding the summation to the timevis, that would be very helpful.
Figured out the zoom issue.
Odd, but I finally got the timedate format to change. Not sure why it wouldn't work before. Now I just need help on the column summation.
The timeline is simply a visualization. It doesn't do anything fancy with the data other than return to you the data as a dataframe. You'll need to write a custom function for extracting the times you're intereted in and doing the math, there's no magic function for it.