Code Monkey home page Code Monkey logo

tradex-chart's Introduction

README

WIP - under heavy development

TradeX-chart is a trade chart written in plain (vanilla) JavaScript with minimal dependencies; use it with any framework or backend.

It provides a two way API to give you complete control over the chart.

Table of Contents

Why

TradeX-chart was created to give you the developer the freedom to choose your framework and not lock you in.

Secondly after talking to other developers, top on their wishlist for a trading chart was more direct control over it, so they could create their own custom plots. The extensive API will give you power over your chart data like you never had before. Subscribe to the internal events messaging to trigger events in your own application.

Getting Started

Requirements

TradeX-chart targets browsers that support ECMAScript 2022.

Demo

Run the demo locally:

npm install
npm run demo

Development

npm install
npm run dev

Build

npm install
npm run build

Production

How to use the chart in production... coming soon to a repo near you, once it is added to npmjs.com.

Documentation

Full documentation including API can be found under docs.

Features

  • Plain JavaScript with no framework dependencies
  • WIP: All chart features and functions accessible via API
  • Built in a modular manner
  • Build your own modular plugins
  • Provides message, emit and subscribe methods
  • State object defines chart configuration, on and off chart indicators, drawing tool overlays and can be imported or exported.
  • Chart implements a multi-layer canvas class which makes overlays easy. It also supports interaction through hit detection.
  • Export chart to png, jpg, webp.
  • Indicator calculation provided by talib-web as a WebAssembly module.
  • Supports multiple candle types:
    • solid
    • hollow
    • solid up, hollow down
    • hollow up, solid down
    • OHLC
    • TODO: area
  • Chart pan / scroll via mouse or cursor keys

tradex-chart's People

Contributors

leoplaw avatar tradex-app avatar

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.