markitondemand / DEPRECATED-DataApis

Markit On Demand - Market Data APIs
http://dev.markitondemand.com
MIT License
178 stars 68 forks source link

Zoom intervals #55

Closed ElizabethAdams1 closed 7 years ago

ElizabethAdams1 commented 7 years ago

I would like to change the intervals for the zoom to be 1 day (a point every hour), 1 week (every hour), and a month (ever day). However, looking at the demo and the purl.js, I can't seem to be able to see where that would be feasible. Could you direct me in how to do this?

brianbaker commented 7 years ago

Its just a matter of fiddling with the various inputs to the API: http://dev.markitondemand.com/MODApis/#doc_interactivechart. The inputs are collected and passed to the server in the getInputParams method of InteractiveChartApi. On initial page load of the demo, the inputs that are passed are:

{
  "Normalized": false,
  "NumberOfDays": 3650,
  "DataPeriod": "Day",
  "Elements": [
    { "Symbol": "AAPL", "Type": "price", "Params": ["ohlc"] },
    { "Symbol": "AAPL", "Type": "volume" }
  ]
}