Giter Site home page Giter Site logo

Comments (10)

andig avatar andig commented on September 25, 2024

What is the problem? Noneof your channels should have negative values?

from volkszaehler.org.

milefork avatar milefork commented on September 25, 2024

The Problem is that it will not be displayed.

It should be look like this: http://puu.sh/c4LrT/c5859c25bf.png
But on the first picture the green line is in nowhere.

I can only get if i uncheck the green and recheck it then I'll see the Graph correct. But if it refreshs or something the green goes away again.

Hope you'll understand my explanation otherwise I think we could talk in german ;)

from volkszaehler.org.

jahir avatar jahir commented on September 25, 2024

I think this is kind of a race condition:
In htdocs/frontend/javascripts/wui.js line 443 ymin is set to 0, but Entity.prototype.updateAxisScale in entity.js sets it to null (i.e. autoscaling) if the min value of the entity data is below zero. But when Entity.prototype.updateAxisScale is called after that (for the next entity), yaxis.min will be set to null again. This explains why it works for you when you disable the entity with negative values and enable it again.
I guess we have to store in a separate property the min value of all channels or that yaxis.min was already set (and clear this flag when loading new data, maybe vz.wui.zoom could be a good place for that).

As a workaround, you could comment this code in Entity.prototype.updateAxisScale:

                if (vz.options.plot.yaxes[this.assignedYaxis-1].min === null) {
                        // avoid overriding user-defined options
                        vz.options.plot.yaxes[this.assignedYaxis-1].min = 0;
                }

from volkszaehler.org.

andig avatar andig commented on September 25, 2024

Good catch. I'll look into this when I find the time....

Am 09.10.2014 um 18:23 schrieb jahir [email protected]:

I think this is kind of a race condition:
In htdocs/frontend/javascripts/wui.js line 443 ymin is set to 0, but Entity.prototype.updateAxisScale in entity.js sets it to null (i.e. autoscaling) if the min value of the entity data is below zero. But when Entity.prototype.updateAxisScale is called after that (for the next entity), yaxis.min will be set to null again. This explains why it works for you when you disable the entity with negative values and enable it again.
I guess we have to store in a separate property the min value of all channels or that yaxis.min was already set (and clear this flag when loading new data, maybe vz.wui.zoom could be a good place for that).


Reply to this email directly or view it on GitHub.

from volkszaehler.org.

milefork avatar milefork commented on September 25, 2024

@jahir commenting this out helps as a short fix thx.

from volkszaehler.org.

rhartmannh avatar rhartmannh commented on September 25, 2024

The code to comment out is no longer in the source file. Obviously something has been changed. However, the error still exists. Is there another workaround?

from volkszaehler.org.

dervitti avatar dervitti commented on September 25, 2024

@rhartmannh I have (had) the same problem. You have to edit your /www/volkszaehler.org/htdocs/frontend/javascripts/entity.js to comment the lines. It´s in the part "Set axis minimum depending on data".

from volkszaehler.org.

rhartmannh avatar rhartmannh commented on September 25, 2024

Thanks. That helped.

On Jan 18, 2015, 4:04 PM, at 4:04 PM, Sebastian [email protected] wrote:

@rhartmannh I have (had) the same problem. You have to edit your
/www/volkszaehler.org/htdocs/frontend/javascripts/entity.js to comment
the lines. It´s in the part "Set axis minimum depending on data".


Reply to this email directly or view it on GitHub:
#185 (comment)

from volkszaehler.org.

andig avatar andig commented on September 25, 2024

@ALL: can you confirm that this problem only exists when channels with negative and non-negative values are mapped to the same axis?

from volkszaehler.org.

milefork avatar milefork commented on September 25, 2024

yes, i can confirm that.

from volkszaehler.org.

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.