Timeline chart - how to handle time periods?

I work with the Google API and annotated timeline. Drawing schedules are fine. I do not have problems.

However, I need to draw a timeline chart for stock prices. And, as you know, stock prices only make sense between certain times (for example, from 10 a.m. to 4 p.m. when the market opens and closes).

How do I change the graph of the Google timeline so that the range on the X-Axis is from 10 to 4 hours? Right now, he is simply drawing a long, constant line between 4pm to 10am the next day, before prices begin to move again.

Man, I hope this sounds. (This looks like a Google chart does.)

Thank you for who can answer. You are a CHAMPION!

+3
source share
2 answers

Apparently, it is now possible if you use the new AnnotationChart API: https://code.google.com/p/google-visualization-api-issues/issues/detail?id=25#c43

You can also use other similar solutions, for example dygraphs .

+1
source

I had the same problem. A bit, although I found a workaround. Just fill in the missing values ​​with 0 (or zero) values. He will do the work

0
source

Source: https://habr.com/ru/post/1737522/


All Articles