Socket
Book a DemoInstallSign in
Socket

eon-spark

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eon-spark

Developers create engaging, beautiful live data visuals that helps you stand out. It's fast, simple, and open source. EON Spark is the visual representation of live streaming data, the way you would imagine.

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

EON Spark

Developers create engaging, beautiful live data visuals that helps you stand out. It's fast, simple, and open source.

Developers create lovely visuals from live data.

EON Spark Chart and Graph

You imagine what live streaming data looks like. Charting and graphing for live streaming data. iOS, Android and web browsers. This is the visual representation of live streaming data, the way you would imagine.

EON Spark Graphing

EON Spark is lightweight, and has been coded ground-up. No dependencies are required. This means streamlined performance dedicated to drawing streaming data visuals. EON Spark library was purpose built for mobile and web displays. This graphing library was built internally at PubNub and has been in use since 2014.

Getting Started: EON Spark Data Visualizations

How to draw lines on a spark chart with a quick tutorial. Start with defining your HTML DOM element <svg>.

<!-- Sparkline Graph Element -->
<svg id='basic-sparkline'></svg>

How should your sparkline look? It should be pretty! Sparkline basic CSS provided. You can define animation and more! Make your sparkline sparkle. We'll start simple first.

<!-- How should the line look? -->
<style>
    #basic-sparkline {
        background: #f5e2c8;
        width: 500px;
        height: 100px;
    }
    line.basic {
        stroke: #f56476;
        stroke-width: 3.0%;
        stroke-dasharray: 2 2 400;
    }
</style>

Initialize EON Spark graph and create painting area.

<script src="../eon-spark.js"></script>
<script>
    // Generate sparkline graph
    const graph = eon.spark({ duration: 10, svg : 'basic-sparkline' });
</script>

Adding a line to the chart by using .append() method.

<script>
    // Draw line two times per second with random value.
    setInterval( () => {
        graph.append({
            classname : 'basic'
        ,   value     : Math.random() * 300 + 2000
        });
    }, 500 );
</script>

EON Spark Roadmap

  • Website w/ signup form
  • Spark Builder/Gallery (themes, data source/test data, etc.)
  • Web Dashboard Demo
  • Documentation of each parameter
  • BLOCKS for Stream Processing
  • iOS Cocoa Pod
  • Android Module
  • Angular Module
  • Angular2 Module
  • React Module
  • Polymer Component
  • http://buildwithreact.com/tutorial/events tutorial style

Keywords

ios

FAQs

Package last updated on 11 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts