Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apicharts

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apicharts

Simple charting components for external & dynamic data sources... give it a url and go!

  • 0.3.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

apicharts (warning: preproduction = API changing constantly, stay tuned)

Displaying charts from an API feed should be easy. Now it is.

npm version node version support Build Status via Travis CI Coverage Status NPM downloads

Why?

Because sometimes we just need to visualize our data quickly and can't be bothered to wire up the fetching/data-loading process. ApiChart handles it for you.

Example Usage 1 (local API, no data transforms needed)

<ApiChart
  type="spline"
  url="/api/snapshot/NEOBTC"
  dataPath="history"
  series={[
    { name: 'high', yPath: 'high' },
    { name: 'low', yPath: 'low' },
    { name: 'open', yPath: 'open' },
    { name: 'close', yPath: 'close' },
  ]}
  zerobased={false}
  timeseries
  autodetect
/>

Example Usage 2 (remote API, some data transforms needed)

<ApiChart
  title="ETH/BTC Spline"
  type="area"
  url="https://api.binance.com/api/v1/klines?symbol=NEOBTC&interval=1h&limit=240"
  formatter={
    (v) => ({
      date: v[0],
      close: v[4],
    })
  }
  series={[
    { name: 'close', yPath: 'close' },
  ]}
  autodetect
  timeseries
/>

Disclaimer: NOT production ready. Implementation docs/API to follow...

Keywords

FAQs

Package last updated on 06 Sep 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc