Financial time series axis
See original GitHub issueAdding an issue to track based off the discussion at https://github.com/chartjs/Chart.js/pull/6695#discussion_r343698429
Most financial applications such as Yahoo Finance, Trading View, etc. have each data point equally spaced apart. I originally didn’t notice this wasn’t done on the gold high/low example because there were lots of points. But it’s more noticeable when there are fewer points or the points are drawn as candlesticks, ohlc, or bars because you end up with gaps for weekends.
The actual logic is really simple. Each point is just placed on the x-axis by index / numIndices
. (The Chart.js code for this is stupidly over complicated and a terrible example to follow so I wouldn’t even look at it as it would only confuse)
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
Analysis of Financial Time Series
Tsay, Ruey S., 1951–. Analysis of financial time series/Ruey S. Tsay.—2nd ed. p. cm. “Wiley-Interscience.” Includes bibliographical references and index.
Read more >How to Chart Time Series: Linear vs. Logarithmic Scale - Winton
Here we examine some of the most important considerations for creating good charts of long-term financial market time series.
Read more >R Financial Time Series Plotting - GitHub Pages
First, to build a plot, we need data. Let's see how easy it is to get a time series of financial data in...
Read more >Plotting Financial Time Series with Bokeh - YouTube
Plotting financial market data with bokeh with moving average. Github: https://github.com/markumreed/data_science_for_everyoneLinkedIn: ...
Read more >Working with Financial Time Series Data in R
irregularly spaced financial time series, by far the most used ... Trying to create a xy-plot with the dates on the x-axis creates...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow. Amazing! You’re going to get me to switch from Chart.js soon enough 😃
i could always use a second capable set of eyes, brain and hands!