Skip to content
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

Cannot skip missing date #76

Open
ghost opened this issue Dec 18, 2017 · 2 comments
Open

Cannot skip missing date #76

ghost opened this issue Dec 18, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 18, 2017

Hi, when ploting candlestick, there is always some date with no data due to no trade happend in that days. But your plot of candlestick would still plot them with blank.
Even in your example, the code you used cannot reproduce the right result on my computer.

if(!require(rAmCharts)){install.packages("rAmCharts")}
data("data_candleStick2")
amCandlestick(data = data_candleStick2, dataDateFormat = "YYYY-MM-DD", 
              labelRotation = -45)

Here is what your print:
image
Here are what I got:
image

@bthieurmel
Copy link
Contributor

Hi,

one way is to not parse date, like this :

data("data_candleStick2")
amCandlestick(data = data_candleStick2)

# Parse date              
amCandlestick(data = data_candleStick2, 
              dataDateFormat = "YYYY-MM-DD")

@ghost
Copy link
Author

ghost commented Feb 17, 2018

@bthieurmel But that does not solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant