All Projects → arpitnarechania → d3-kagi

arpitnarechania / d3-kagi

Licence: MIT license
An open source javascript library to render beautiful Kagi charts using D3.js and pure Javascript

Projects that are alternatives of or similar to d3-kagi

Sunburst Chart
A sunburst interactive chart web component for visualizing hierarchical data
Stars: ✭ 140 (+438.46%)
Mutual labels:  chart, d3js
Reaviz
📊 Data visualization library for React based on D3
Stars: ✭ 215 (+726.92%)
Mutual labels:  chart, d3js
D3 Layout Narrative
A d3 layout for creating XKCD style narrative charts
Stars: ✭ 168 (+546.15%)
Mutual labels:  chart, d3js
Hqchart
HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据替换接口
Stars: ✭ 1,126 (+4230.77%)
Mutual labels:  chart, stock
ChartTheStockMarket
🔥 📈 💸 Chart the Stock Market - FCC Challenge
Stars: ✭ 39 (+50%)
Mutual labels:  chart, stock
Ss Vis Component
VIS components for a security system, to monitor the state and confirm the system's health running.
Stars: ✭ 88 (+238.46%)
Mutual labels:  chart, d3js
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (+623.08%)
Mutual labels:  chart, d3js
D3 Timeline
A simple D3 Timeline chart
Stars: ✭ 743 (+2757.69%)
Mutual labels:  chart, d3js
TerminalStocks
Pure terminal stock ticker for Windows.
Stars: ✭ 88 (+238.46%)
Mutual labels:  stock, stock-prices
dukascopy-tools
✨ Download historical price tick data for Crypto, Stocks, ETFs, CFDs, Forex via CLI and Node.js ✨
Stars: ✭ 128 (+392.31%)
Mutual labels:  stock, stock-prices
D3 In Motion
Code examples and references for the course "D3.js in Motion"
Stars: ✭ 37 (+42.31%)
Mutual labels:  chart, d3js
StockView
股票相关控件(分时图、五日分时图、自选股迷你分时图、资金趋势图、盈亏额/盈亏率)- (曲线图、折线图)
Stars: ✭ 87 (+234.62%)
Mutual labels:  chart, stock
Kschart
k线图/kline/kchart,已经集成MA/EMA/MACD/KDJ/BOLL/RSI/WR/AVG等指标,新增指标及其方便。适用于股票/区块链交易所等种类App。Swift5编写,CPU/内存占用率极低,60FPS稳定运行。示例集成websocket,并接入币安数据(需VPN)。
Stars: ✭ 909 (+3396.15%)
Mutual labels:  chart, stock
Just Dashboard
📊 📋 Dashboards using YAML or JSON files
Stars: ✭ 1,511 (+5711.54%)
Mutual labels:  chart, d3js
D3fc
A collection of components that make it easy to build interactive charts with D3
Stars: ✭ 898 (+3353.85%)
Mutual labels:  chart, d3js
Stock Chart
基于 canvas 的沪深两市股票分时 K 线图
Stars: ✭ 170 (+553.85%)
Mutual labels:  chart, stock
Hycharts
柱状图、折/曲线图、K线图(主图、交易量图、辅助图), 图与图可以自由组合, 支持分页加载数据 -----> 低内存、低耗电、滑动缩放顺滑
Stars: ✭ 394 (+1415.38%)
Mutual labels:  chart, stock
Ngx Charts
📊 Declarative Charting Framework for Angular
Stars: ✭ 4,057 (+15503.85%)
Mutual labels:  chart, d3js
PyTse
TseTmc Crawler
Stars: ✭ 40 (+53.85%)
Mutual labels:  stock, stock-prices
Simple-charts
Simple responsive charts
Stars: ✭ 15 (-42.31%)
Mutual labels:  chart, d3js

D3-Kagi

D3-Kagi is an open-source JavaScript library for rendering Kagi charts using the D3.js library.

The Kagi chart is a chart used for tracking price movements and to make decisions on purchasing stock. It is one of the various charts that investors use to make better decisions about stocks. The most important benefit of this chart is that it is independent of time and change of direction occurs only when a specific amount is reached. It was originally developed in Japan during the 1870s when the Japanese stock market started trading. It was used for tracking the price movement of rice and found use in determining the general levels of supply and demand for certain assets.

Check out an Example where you can test various configuration options.

Installation

Download d3-kagi using bower.

bower install d3-kagi --save

To use this library then, simply include d3.js, jquery, kagi.js and kagi.css:

<script src="/path/to/d3.min.js"></script>
<script src="/path/to/jquery.min.js"></script>
<script src="/path/to/dist/kagi.css"></script>
<script src="/path/to/dist/kagi.js"></script>

Usage

To use this library, you must create a container element and instantiate a new Kagi chart:

<div id="kagiChart"></div>

Data in .json format

var data = [
  {
    "date": "2015-01-02",
    "close": 109.33
  },
  {
    "date": "2015-01-05",
    "close": 106.25
  },
  {
    "date": "2015-01-06",
    "close": 106.26
  }];

Setting chart parameters

    var chart_options = {
        "caption": "Caption",
        "subCaption": "Sub caption",
        "reversalValue": 25,
        "reversalType": "diff",
        "unit": "$",
        "isPrecedingUnit":true,
        "rallyThickness": "3",
        "rallyThicknessOnHover": "6",
        "declineThickness": "2",
        "declineThicknessOnHover": "4",
        "rallyColor": "#2ecc71",
        "declineColor": "#e74c3c",
        "width":900,
        "height":500,
        "margin":{top: 75, right: 50, bottom: 100, left: 50},
        "showBreakPoints":true,
        "showBreakPointText":true,
        "breakPointColor":"#3498db",
        "breakPointRadius":5,
        "breakPointRadiusOnHover":8,
        "showBreakPointTooltips":true,
        "showRangeTooltips":true,
        "showLegend":true,
        "chartTheme":"dark",
        "showAnimation":true,
        "animationDurationPerTrend":100,
        "animationEase":"linear"
        }

    KagiChart(data,chart_options);

Options

Option Description Type Options
width The width of the chart in pixels number 900
height The height of the chart in pixels number 500
margin.top The top margin number 75
margin.bottom The bottom margin number 50
margin.left The left margin number 100
margin.right The right margin number 50
showLegend Whether the legend is to be shown. bool true
caption The chart caption. string 'Caption'
subCaption The chart sub-caption string 'Sub Caption'
chartTheme Some themes for the chart rendering string 'light' (default), 'dark'
reversalType The basis on which the Kagi trend must reverse - difference or percentage string 'diff' (default), 'pct'
reversalValue The reversal value based on which the Kagi trend must reverse number 0.25
rallyColor The color of the Yang lines string 'green'
rallyThickness The thickness of the Yang lines number 3
rallyThicknessOnHover The thickness of the Yang lines when hovered upon number 5
declineColor The color of the Ying lines string 'red'
declineThickness The thickness of the Ying lines number 2
declineThicknessOnHover The thickness of the Ying lines when hovered upon number 4
showBreakPoints Whether to show the points where trend reversal happens bool true
breakPointColor The color of the break points string 'blue'
breakPointRadius The radius of the break points number 3
breakPointRadiusOnHover The radius of the break points when hovered upon number 5
showBreakPointTooltips Whether to show the tooltips when breakpoints are hovered upon bool true
showBreakPointText Whether to show the dates on x axis when trend reversal happens bool true
showRangeTooltips Whether to show the tooltips showing info for a particular trend bool true
unit Unit of the stock price (eg. $ ) string '$'
isPrecedingUnit Is the unit preceding like $ or succeeding like rupee bool true
animationEase The common animation easing functions string 'linear' (default)
animationDurationPerTrend The duration in which a trend must be animated number 500
showAnimation Whether to show animation or not. bool true

Author

Arpit Narechania [email protected]

License

MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].