-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Candlestick plotter #538
base: master
Are you sure you want to change the base?
Candlestick plotter #538
Conversation
(function() { | ||
"use strict"; | ||
|
||
Date.prototype.getWeek = function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's please not modify built-in objects.
This is cool, but it could really benefit from some documentation. What assumptions does it make about the data? |
@danielkrizian could you please write some documentation for this plugin since you are more competent in this question. Thanks! |
Candlesticks are traditional way of displaying price ranges as well as trend in which a financial stock traded during a day (or week, month, etc.), from the stock exchange open till close during the period, marking the highest and lowest price reached during that period and color-coding the trend. The http://en.wikipedia.org/wiki/Candlestick_chart#/media/File:Candlestick_chart_scheme_03-en.svg |
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this—it's a relic of when dygraphs supported canvas emulation.
I'd like to merge this. I have three comments which should be easy to address:
|
@danvk do you have any more questions or suggestions about this PR? Thanks! |
Sorry this has been pending for so long. I'll be happy to merge it if you guys add a unit test (e.g. in |
Hello @danvk ! I've changed the Candlestick plotter code to adapt using ES6 modules, added one more demo and created a couple of test cases. Hope it is good enough now to merge. Please let me know if you have any suggestions/notes. Cheers |
@danvk any feedback of this PR? Thanks. |
If nobody has any objections, I'd like to merge this PR. |
@pshevtsov Do you have a simple example of R code for creating a candlestick plot using your branch of dygraphs? |
@algoquant Please check rstudio/dygraphs#128 |
Candlestick chart with optional bars compression annually, quarterly, monthly, weekly or daily.