andredumas / techan.js

A visual, technical analysis and charting (Candlestick, OHLC, indicators) library built on D3.
http://techanjs.org/
MIT License
2.4k stars 534 forks source link

How to format time for weekly, monthly candlestick chart? #190

Open khunztul opened 7 years ago

khunztul commented 7 years ago

Following the techanJS example I was able to create candlestick charts with day data. But documentation does not shows how to format date for weekly, monthly and yearly candlestick or ohlc charts.

How to create weekly, monthly or yearly candlestick, ohlc chart with with techan JS?

Shubhamnandwana18 commented 6 years ago

Hi @khunztul I am sorry currently I don't have a solution to your problem. Can you please tell me if you were able to load JSON data instead of CSV data file Regards, Shubham

rjarbour commented 6 years ago

@Shubhamnandwana18 stop carpet bombing the issue section; its not active and people wont go back to read these. all you need to do is iterate through the JSON data and form an array of objects that have the key values shown from previous examples, IE: date, close, open, volume.... just experiment with it. instead of reading the CSV file try iterating through JSON for form the array of data points.