Free up to 1MM monthly messages. No credit card required.
This blog post is an introduction to EON, where we’ll look at what’s inside the framework, how it works, how to get it, and the different types of charts, graphs, and maps you can build with it.
So let’s get started with real-time dashboards!
EON is an open-source chart and map framework for real-time data. The framework connects C3.js charts and Mapbox’s map widget to the PubNub Data Stream Network. Whether you’re building the next taxi app or an analytics dashboard, EON allows you to build real-time maps and charts that work on any platform.
Even better, it’s ready for the mobile web too. PubNub alone has SDKs for more than 70 platforms, so you can build in almost any environment.
C3.js is an awesome library based on D3.js that tweens animations between old and new data. So when you add a new data point to your chart, the transition is animated. This is great for streaming real-time data, because the animation brings attention to change, no refresh required.
Mapbox is a mapping SDK for custom maps. There are all sorts of tools, plugins, and styles, so it’s easy to create any kind of map you want. The most common use for hooking up a real-time stream to a map is to plot the location something. EON is focused on plotting markers on a map and animating their movement. Mapbox has support for custom markers, and we added animation in EON to tween old and new data.
PubNub is the real-time data stream network that handles the communication between EON and whatever platform your publishing data from. You publish from any of PubNub’s 70 supported platforms into EON using the same syntax.
EON is distributed as three libraries:
eon-map are distributed through
bower, so you can:
We also host the individual packes on pubnub.com:
C3.js is a great way to graph real-time data. The transitions are smooth, the variety of chart types is awesome, and they look great. C3.js powers
eon.chart and the PubNub plugin makes them real-time.
You can include just the chart library like this:
And then define your chart:
From custom designs, a Mac App, markers, data uploads and more, Mapbox has everything you need to make awesome dashboards. Mapbox powers
eon.map and the PubNub plugin animates markers based on geolocations you publish
Include the scripts in your head.
And the define your map.
You use PubNub to publish messages to the same ‘channel’ supplied in the EON constructor. The data travels over the PubNub data stream network and gets rendered in the eon element.
You can PubNub publish from any of PubNub’s SDKs and as long as your data is in the same JSON format, everything will work just great.
Publish you data in the same format as C3.js expects. Each column is an array. The first column is the key and the second is the value:
This example comes from the eon-map simple example.
You can PubNub publish from any of PubNub’s SDKs. All you need to do is publish your lat and long values in an array.
The full code looks like this:
You can embed multiple charts and maps on the same page, all displaying data from different channels. You can combine maps, charts, and other features into the same page.
Stay tuned for future tutorials on building real-time dashboards with EON!
A Notice of Privacy Practices (NPP) is one of the requirements of HIPAA and helps patients understand their personal data rights.
HIPAA violations can be financially expensive and devastating to a brand. Examine some examples of HIPAA violations, and learn...
HIPAA covered entities must follow the five technical safeguards to achieve HIPAA compliance and prevent data corruption.