floppydisk
Posts: 3
Joined: Thu Jun 28, 2012 4:54 pm

Zooming Causes Data To Disappear

I'm having a problem very similar to the one seen at this stack overflow question http://stackoverflow.com/questions/1123 ... oom-levels. I've got a sorted X,Y series where X is a timestamp with days of the week and only has holes for when data wasn't collected or recorded on weekends and Y is a series of floating point values. When I create an initial highstock chart, and display the data at the "all" level, everything shows up. When I select a button. like 1m, 3m, or user the sliders to set a custom range, all the data points disappear. Using the sliders, I found I have to have a minimum range of >= 1.2 years for any data to display on the screen and I"m trying to figure out why I can't really zoom in on the chart. I know the data is there, the points render when I hover over them and the debugger says the array is loaded. Any help would be appreciated!

Edit: Wrong link. Sorry!
Last edited by floppydisk on Thu Jun 28, 2012 7:10 pm, edited 3 times in total.
Fusher
Posts: 7912
Joined: Mon Jan 30, 2012 10:16 am

Re: Zooming Causes Data To Disappear

Are your data sroted ascending for timestamps? If yes, could you recreate issue on jsfiddle? With seeing this live it would be easier for me to solve that problem.
Paweł Fus
Highcharts Developer
floppydisk
Posts: 3
Joined: Thu Jun 28, 2012 4:54 pm

Re: Zooming Causes Data To Disappear

I'm working on getting a mockup done. My random data generator isn't even displaying data at the moment, so it'll be a little while.

Regarding data sorts, yes, it is sorted in ascending order.

Edit: JSFiddle http://jsfiddle.net/LCYVv/. The data has holes punched in the weekends, like the real data set I'm trying to work with. Note the slider takes more than a year's gap in order for the data to appear.
Fusher
Posts: 7912
Joined: Mon Jan 30, 2012 10:16 am

Re: Zooming Causes Data To Disappear

You have to set timestamps for x-values, not dates ;)
Paweł Fus
Highcharts Developer
floppydisk
Posts: 3
Joined: Thu Jun 28, 2012 4:54 pm

Re: Zooming Causes Data To Disappear

Derp. Thanks for the help!
mariowise
Posts: 1
Joined: Thu Jun 10, 2021 10:08 pm

Re: Zooming Causes Data To Disappear

Can anybody help me understand why this data makes the chart disappear when you zoom in?

http://jsfiddle.net/6w2ku59j/
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Zooming Causes Data To Disappear

Hello mariowise!

Welcome to our forum and thanks for contacting us with your question!

Sure, the data is not sorted. You've got a warning in the console and that's the reason why it doesn't work on zoom. When you sort the data, it works fine.

Demo:
http://jsfiddle.net/BlackLabel/yn4u3ajm/

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”