You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to d3-js
Hi,
I am trying to filter certain data based on data. For instance, I have a CSV file that looks similar to the one below.
I want to filter data based on the VarDate. So lets say I want the data for "2015-05-02". How would I accomplish this?
I am trying to construct a line chart.
TimeStep,Pac,Temperature,Vac,VarDate
6:15,0,23.2,208.69,2015-05-01
6:20,0,23.2,208.51,2015-05-01
6:25,0.72,23.2,209.1,2015-05-01
6:20,0,21.21,209.47,2015-05-02
6:25,0,21.22,209.19,2015-05-02
6:30,0,21.26,209.14,2015-05-02
~Thanks
Curran
unread,
Nov 17, 2015, 4:56:16 PM11/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to d3-js
Hello,
Assuming you have a variable "data" with the parsed CSV, and VarDate remains as a string (not parsed into a Date object), the following code will filter the data to contain only the data for "2015-05-02":