question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Financial time series axis

See original GitHub issue

Adding 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:closed
  • Created 4 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
benmccanncommented, Nov 8, 2019

Wow. Amazing! You’re going to get me to switch from Chart.js soon enough 😃

0reactions
leeoniyacommented, Nov 8, 2019

i could always use a second capable set of eyes, brain and hands!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found