Comments (10)
What is the problem? Noneof your channels should have negative values?
from volkszaehler.org.
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.
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.
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.
@jahir commenting this out helps as a short fix thx.
from volkszaehler.org.
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.
@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.
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.
@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.
yes, i can confirm that.
from volkszaehler.org.
Related Issues (20)
- Website down HOT 3
- Push Server seems to consume memory continually. Memory Leak? HOT 19
- Virtualsensor with hourly Price (e.g. Tibber) HOT 2
- Incompatibility of new DB structure and dbcopy
- Every two minutes mariadb warning
- 403 error in apache2 nach genauer anleitung des volkszähler HOT 19
- s0 zähler mit ardurino über usb auslesen HOT 4
- Frontend: Possibility to show weekly values (Enhancement)
- aggregate fails due to division by zero HOT 2
- Plot can not be hide in Frontend
- Network Error - Bad Gateway after Git update HOT 10
- vzcompress2 PHP Deprecated
- https://wiki.volkszaehler.org/hardware/channels/solar_inverters/deye re-implementation
- Service Temporarily Unavailable HOT 2
- Configuration of logrotate in Raspberry image incorrect HOT 2
- Frontend: rightmost bar graphs always overlap its neighbor
- PHP 8.2: Dynamic Properties are deprecated HOT 5
- PPM does not start - Symphony error HOT 1
- /misc/sql/demo.sql uses non existing column
- Cannot connect to MariaDB with standard compose file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volkszaehler.org.