Forum Replies Created by nonprohacker

Viewing 3 posts - 1 through 3 (of 3 total)
  • in reply to: Automatically updating y axis on dynamic charts #28967

    Thank you so much for your help! This was the exact thing I needed. Thank you!

    in reply to: Automatically updating y axis on dynamic charts #28931

    here is an example of what happens (see chart 2)https://jsfiddle.net/q945bvej/2/ I need it so that the y value can’t go below 0. But I also need it so that if the y value is a large number, that the chart will automatically zoom in so you can see the changes better than just a linear line. Is there some way to modify the y axis to a range between each newly generated data point? So, if the y value generated is 10,000 then the y axis range would be from 9000 to 11000. Then, if the next point is 5,000 the y axis range would automatically zoom to 4,000 and 6,000. I feel as if I am not explaining this well.

    • This reply was modified 4 years, 8 months ago by nonprohacker.
    • This reply was modified 4 years, 8 months ago by nonprohacker.
    in reply to: Automatically updating y axis on dynamic charts #28929

    I tried making a jsfiddle, but it wasnt working. Basically, my problem is that I am trying to make a graph that doesn’t go below 0. But, If It gets into values of 4000, then the y axis only shows whats from 0 up to wherever it is. Is there a way to make it so that when the y values are around a high number, like 4000, the y axis will update so that it isn’t static at 0. Here is a jsfiddle that I modified that demonstrates this. (check 2nd chart) https://jsfiddle.net/q945bvej/2/ I want it to be automatically zoomed in closer to where the data is so you can see every little change, but I don’t know how to do that.

    • This reply was modified 4 years, 8 months ago by nonprohacker.
Viewing 3 posts - 1 through 3 (of 3 total)