Coder Social home page Coder Social logo

livechart's People

Contributors

sevko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

livechart's Issues

add support for multi-line JSON objects

The tool currently expects each new data-point to sit on its own line, like:

{"foo":"bar"}
{"foo":"bar"}
{"foo":"bar"}
{"foo":"bar"}

Try to add support for multi-line inputs, like:

{
    "foo": "bar"
}
{
    "foo": "bar"
}
{
    "foo": "bar"
}
{
    "foo": "bar"
}

add option to bulk-chart data

If you have a file containing lots of numbers already sitting around, it's painfully slow to sequentially render it by piping it into livechart. Provide an option for bulk loading points from a file.

re-render the graph only at set intervals

A fast feeder stream will overwhelm livechart because it renders so slowly. There's no practical reason to redraw the graph for every data point, so only do so at regular (configurable) intervals.

failed parsing is mishandled: UnboundLocalError

No JSON object could be decodedFailed to parse JSON for line:
Traceback (most recent call last):
  File "/usr/local/bin/livechart", line 9, in <module>
    load_entry_point('livechart==0.0.2', 'console_scripts', 'livechart')()
  File "/usr/local/lib/python2.7/site-packages/livechart/script.py", line 66, in run
    sys.exit(chart.render_stdin(parse_args()))
  File "/usr/local/lib/python2.7/site-packages/livechart/chart.py", line 99, in render_stdin
    for key, val in parse_json(line).items():
  File "/usr/local/lib/python2.7/site-packages/livechart/chart.py", line 29, in parse_json
    if isinstance(json_blob, (int, float)):
UnboundLocalError: local variable 'json_blob' referenced before assignment
Exception KeyError: KeyError(140735190991616,) in <module 'threading' from '/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.pyc'> ignored

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.