Giter Club home page Giter Club logo

Comments (4)

drewnoakes avatar drewnoakes commented on June 12, 2024

Can you share an image that shows roughly what you'd like the output to look like?

from smoothie.

cinderblock avatar cinderblock commented on June 12, 2024

Something like these two plots showing the angle of a motor at two different angular velocities.

image

Note, the polar grid would be fixed in angle but the radius lines would be "scrolling" from the center to the edge.

The more I look at this, the more I think this might need to be a separate (forked) project...

from smoothie.

drewnoakes avatar drewnoakes commented on June 12, 2024

One difference to consider is that Smoothie has a TimeSeries object that is logically unbounded, and only a fixed length window at the end (leading up to Date.now()) is shown. For a polar chart, you have 0-360 degrees, potentially wrapping.

It probably makes sense to use Smoothie's code for inspiration and creating something new. It would be possible to start supporting new chart types in Smoothie, but we wouldn't want to get away from the value Smoothie has in being a simple focussed chart type.

from smoothie.

cinderblock avatar cinderblock commented on June 12, 2024

I think I've failed to articular my thinking fully.

Just like SmoothieCharts, the data from a TimeSeries, once it gets to the edge of the circle, gets discarded (just like SmoothieCharts).

Basically, map the x axis of SmoothieCharts to r (radius) and the y axis to θ (angle). Auto scaling basically not needed since you always know what one revolution is. Though I imagine being able to specify a scale would make a lot of sense.

Back to the point at hand, it sounds like it makes more sense to keep this as a separate project.


I'm still wondering if a 2D chart would make sense, where the canvas doesn't scroll and the data essentially just expires (or fades to nothing) over some defined period of time.

from smoothie.

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.