Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Filled lines not calculating fill polygon correctly towards x axis #1267

Closed
andig opened this Issue · 4 comments

2 participants

@andig

Using fill:true on line charts (with timeline axis) leads to incorrect fill towards the x axis. Apparently this happens primarily if the series contains little amount of zero or near-zero y values:

fill-style
fill-style2

Expected behavior would be filling towards the axis, either from positive or negative side depending on y values.

@dnschnur
Owner

What are your y-values?

@andig

These are the timestamps and y-values for the first example- thank you for looking into the issue:

1372456500,0.01
1372542900,523.792
1372629300,546.292
1372715700,1595.375
1372802100,1460.625
1372888500,706.292
1372974900,1077.625
1373061300,1009.375
1373147700,1641.292
1373234100,1634.917
1373320500,1542.25
1373406900,1189.5
1373493300,391
1373579700,688.375
1373666100,918.125
1373752500,1359.208
1373838900,284.625
1373925300,1522.333
1374011700,1564.25
1374098100,1336.417
1374184500,1245.375
1374270900,1613.583
1374357300,1219.625
1374443700,1680.417
1374530100,1616.75
1374616500,1612.458
1374702900,870.958
1374789300,1339.708
1374875700,878.25
1374962100,1105.167
1375048500,807.042
1375134900,900.667
1375221300,1175.167
1375307700,852.792
1375394100,1329.917
1375480500,1611.042
1375566900,858.208
1375653300,1378.875
1375739700,1459.625
1375826100,1505.333
1375912500,511.583
1375998900,401.75
1376085300,1072.042
1376171700,1122.292
1376258100,743.375
1376344500,818.792
1376430900,1055.875
1376517300,1053.792
1376603700,1178.125
1376690100,1544.917
1376776500,732.333
1376862900,219.792
1376949300,597.917
1377035700,964.792
1377122100,1453.042
1377208500,1183.875
1377294900,667.875
1377381300,1558.833
1377467700,1384.708
1377554100,1443.208
1377640500,679.958
1377726900,881.875
1377813300,903.875
1377899700,1163.417
1377986100,322.542
1378072500,829.708
1378158900,99.25
1378245300,441.667
1378331700,1113.375
1378418100,1428.333
1378504500,1521.792
1378590900,866.667
1378677300,340.208
1378763700,515
1378850100,282.417
1378936500,411.167
1379022900,590.375
1379109300,534.625
1379195700,261.25
1379282100,720.625
1379368500,636.417
1379454900,1038.583
1379541300,326.625
1379627700,517.25
1379714100,332.125
1379800500,802.958
1379886900,162.292
1379973300,189.5
1380059700,594.958
1380146100,240.583
1380232500,249.875
1380318900,1325.875
1380405300,1374.917
1380491700,1529.5
1380578100,1540.417
1380664500,1435.792
1380750900,1267.458
1380793500,858.423
@andig

Please let me know if there is anything I can contribute (or where to look further for diagnosis ;) This is currently quite ugly for our http://volkszaehler.org app where we've just added support for filled series.

@andig

I've found that the behaviour was caused by my time series tuples were using a 3rd value, so essentially being triples. Once the third datum is cleansed from each tuple the fill behaviour works es expected. Closing as invalid.

@andig andig closed this
@dnschnur dnschnur added the invalid label
@andig andig referenced this issue in volkszaehler/volkszaehler.org
Merged

Fix flot error when filled lines are not drawn down to axis #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.