Thanks David, It's working now at http://lmorillas.github.io/recursoscaa/
This is the event binding: https://gist.github.com/lmorillas/540a5fb4d817d8227a98 Best, -- luismiguel (@lmorillas) 2015-03-25 18:58 GMT+01:00 David Karger <[email protected]>: > In the short term, the following should allow you to locally provide the > "yearOf" function that you want. Invoke the following code > > Exhibit.FunctionUtilities.registerSimpleMappingFunction("yearOf", > function(d) { > //code to extract year from ISO date > }, > "number") > > some time after exhibit load but before exhibit renders (for example, by > triggering on Exhibit's scriptsLoaded.exhibit event: > https://github.com/simile-widgets/exhibit/wiki/Scripted-Event-API ) > > On 3/23/2015 6:45 PM, Luis Miguel Morillas wrote: >> >> Is there any Exhibit function that extracts year from ISO dates? >> >> I've found a solution at the docs using yearOf(.date) [1] but it >> doesn't work. I'm using a big json file and I don't want to duplicate >> data in it. >> >> This other solution [2] doen't works with Exhibit 3 >> >> >> >> [1] http://davidhuynh.net/media/papers/2007/www2007-exhibit.pdf >> [2] >> https://groups.google.com/d/msg/simile-widgets/vktyC2521fY/1Mi0sCB28r8J >> >> Regards, >> >> >> -- luismiguel (@lmorillas) >> > > -- > You received this message because you are subscribed to the Google Groups > "SIMILE Widgets" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/simile-widgets. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/simile-widgets. For more options, visit https://groups.google.com/d/optout.
