You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found it useful to create a simple DayCounter for my Covid19 project. I convert dates from a string in the csv data using your library and use my DayCounter to easily control days I render.
Perhaps something like day counter would be useful directly in datetime if not then left here incase useful for others, I expect you could create a date and then increment it by one day but this seemed clearer to work with a cut down format, perhaps you have similar feature already that I missed.
vardayCounter=newDayCounter({day:5,month:3,year:2020});
functionrenderDay(){ // every so many framesvarrenderData=newArray<MyData>(); // MyData would contain date and some data values.varj=0;
for( dinmyData ) {
if( dayCounter.matchDate( d.date ) ) renderData[ j++ ] =d;
}
plot( renderData ); // plot data to screendayCounter.next();
}
The text was updated successfully, but these errors were encountered:
I found it useful to create a simple DayCounter for my Covid19 project. I convert dates from a string in the csv data using your library and use my DayCounter to easily control days I render.
Perhaps something like day counter would be useful directly in datetime if not then left here incase useful for others, I expect you could create a date and then increment it by one day but this seemed clearer to work with a cut down format, perhaps you have similar feature already that I missed.
typical use
The text was updated successfully, but these errors were encountered: