Giter Site home page Giter Site logo

Comments (5)

beto-rodriguez avatar beto-rodriguez commented on May 22, 2024 1

Got it with the previous commit, and the will be included in the next release (beta.13), thanks again!

from livecharts2.

CodeWithMichal avatar CodeWithMichal commented on May 22, 2024

@beto-rodriguez did you manage to reproduce this bug ? :)

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on May 22, 2024

I am rolling this fix back, I am now experiencing a bug because of this fix.

This was never a bug, I miss-understood the problem, The library automatically fits the view to the data on your chart.

The problem for your case was that your Y Axis had a limit from 0 to 4, if you look at your data, none of the values were in that range, thus you got that, and that was correct that is what the library should do, if you wanted to preserve the X range, then you must set the X axis limits too, or set a valid range in the Y Axis.

Notice this huge difference when zooming and panning, in the first image, the library is able to fit the view to the current data.:

Previously:

deleteme

Now (after 126d232):

deleteme2

from livecharts2.

CodeWithMichal avatar CodeWithMichal commented on May 22, 2024

Well, I think I didnt desrbice it clear enough. I was talking about situation when you have zooming and panning disabled and you keep MaxLimit on Y axis defined. Its because you want specific Y range.

I have FFT ColumnSeries chart which is updated every 500ms. I keep MaxLimit on Y axis set to 100 because for the most time these values are much lower than 100. But for time to time these values could increase far above 100 but I dont want to change MaxLimit as I dont really care about that kind of artifacts. Its fine for me to see only a piece of a column below 100. But you cant do it before 126d232 because if all columns exceeds MaxLimit then they dissappear from chart, like you can see on my screen

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on May 22, 2024

Well, I think I didnt desrbice it clear enough. I was talking about situation when you have zooming and panning disabled and you keep MaxLimit on Y axis defined. Its because you want specific Y range.

I Agree, but notice in your image, that the library respects your range in the Y axis, but because you don't have a a range the X axis, then the library is trying to fit the view to the current data, since you have no points in that Y range, then the X axis messes up.

I think that the library should be smarter, and maybe use the previous valid range if the new one is not valid.

from livecharts2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.