Allow irregular datetime xAxis (Note: irregular point intervals are already supported!)
Before voting on this feature, please make sure you understand that this does not apply to irregular data, but irregular axis. Specifying irregular data intervals is straight forward. See http://highslide.com/forum/viewtopic.php?f=10&t=9222.
Instead of fixed intervals for a datetime xAxis, implement support for specific corresponding datetime-value pairs in case there is no constant logging but sporadic or unsteady input data (e.g. temperature logging only if value has actually changed)
This feature is completed as of Highstock 1.1. In Stock charts it is enabled by default and can be disabled by setting xAxis.ordinal to false. In basic charts it can be enabled by setting ordinal to true.
-
Anja Reddy commented
I have multiple series to show in chart, and need to skip the irregular timeintervels. But here if one series has data for a time interval and others are not, in this case the series which is not having data for that interval is getting splitted.
-
@Sebastian Sinzinger. You need a Highstock license. Highcharts is included.
-
Sebastian Sinzinger commented
@Torstein do i need to have licenses for Highcharts and Highstock to make ordinal work in Highcharts?
-
If you load the highstock.js file your demo works: http://jsfiddle.net/highcharts/LLExL/1732/
-
David Barton commented
Hi, in your response above is line: "In basic charts it can be enabled by setting ordinal to true."
Do you mean Highcharts? I am unable to make ordinal working in my chart, sample here http://jsfiddle.net/LLExL/1720/
What I am doing wrong?
-
Stein Agnar Sannes commented
It should probably be put into the documentation of Highcharts too at http://api.highcharts.com/highcharts#xAxis
-
Shlomi commented
Thank you so much @Torstein for this post and assistant.
It helped me to accomplish my desired graphs finally. Thank you! -
All the samples in the demo are running this feature now. You can see the difference in a minimal pair at http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/stock/xaxis/ordinal-true/ and http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/stock/xaxis/ordinal-false/
-
seapple commented
this is a great news,thank for Torstein Hønsi 's work,
Do you have an example of that? I don't open that link you support,can you support an example on the website(http://www.highcharts.com/demo/)
thank you very much!
-
djh commented
Does this update make it possible to use irregular point intervals AND skip certain times-of-day, for example, nights and weekends? This is what I currently require, and am hoping that if not currently possible, this be implemented in Highcharts in the next step.
-
@MattV: Do you have an example of that?
-
anonen commented
Fix link http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/stock/xaxis/ordianal-true/ for 'ordinal' key xAxis in documentation. ordianal -> ordinal. And subscribe to the previous comment
-
MattV commented
Thanks for this work - but there seems to be one major problem. When using with very large data series (1000s of points), the CPU utilization becomes so high that it can cause the page to become unresponsive.
-
anonen commented
Thanks for this. But it's not clear... https://raw.github.com/highslide-software/highcharts.com/master/js/highstock.src.js - this is url for test version. This is so? There is key 'gapGridLineWidth' in example. But its unused key and its not in source code. Сhange it does not affect the result.
-
anouarbrahem commented
Thanks a lot for this. Looks great. I'm going to try implementing this into my application and report back.
-
@anuraag;
As you can see from the "line series with daily data" example above this is sorted out too.
-
anuraag commented
this looks fine, but what about end-of-day daily data .. are the candlesticks for just simple day OHLC also showing gaps for weekends/holidays or is that sorted out too
-
anouarbrahem commented
Thanks for the update and the screenshot. Looks very promising.
Am enthusiastically looking forward to this feature. -
I'm working frenetically on it. Almost there, only need to get the panning feature right and fix some bugs. Here's a screenshot to keep you interested: http://screencast.com/t/I9QJesoUQcl
-
kusaka commented
This is a critical feature for stock charts and technical indexies. We can not create a parabolic SAR chart. If this feature is implemented, we will purchase the license and publish the charts to the production. So please implement this feature ASAP.