GithubHelp home page GithubHelp logo

Comments (5)

hrbrmstr avatar hrbrmstr commented on June 12, 2024

roger that. i should get them incorporated today.

from metricsgraphics.

jjallaire avatar jjallaire commented on June 12, 2024

Another thing which would be lovely to incorporate would be the automagic creation of time-series plots from XTS objects. You can steal some of the important bits of this from dygraphs:

(1) Here's where I normalize input data: https://github.com/rstudio/dygraphs/blob/master/R/dygraph.R#L31-L48

Your implementation would likely be based on inherits for "xts", "mts", "ts", "zoo", etc. (all of those types signal a time series and can be converted to xts with as.xts. You'll also need to copy the asISO8601Time function: https://github.com/rstudio/dygraphs/blob/master/R/dygraph.R#L31-L48

(2) Here's where I convert the asISO8601Time created vector to an array of JS dates: https://github.com/rstudio/dygraphs/blob/master/inst/htmlwidgets/dygraphs.js#L486-L498

from metricsgraphics.

timelyportfolio avatar timelyportfolio commented on June 12, 2024

regarding xts probably should cross ref #4

from metricsgraphics.

hrbrmstr avatar hrbrmstr commented on June 12, 2024

gh pages are up http://hrbrmstr.github.io/metricsgraphics/ and I'll be incorporating the xts stuff next week

from metricsgraphics.

jjallaire avatar jjallaire commented on June 12, 2024

Okay, just added you to the showcase: http://www.htmlwidgets.org/showcase_metricsgraphics.html

from metricsgraphics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.