sunjavagroups / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Bar graph yields small blip in color of last set over first bar. #532

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We're using flot 0.7 and the bar graph hack described here:
http://groups.google.com/group/flot-graphs/browse_thread/thread/3ec29647f79976da

Strangely enough, there is an extra rectangle of the last series's color 
superimposed onto the first bar and the x-axis.

All of the chart declarations that produced the charts in the screenshots 
follow this example:

xax = { tickLength:0, tickFormatter:function(number){ return '<span 
class="xaxtick">'+number+'</span>'}, min:0, max:9 };
s0 = {data:[[1, 0], [1, 20]], bars:{show:true, fill:1}, label:'$100K+', 
color:'#5c7099'};
s1 = {data:[[1, 0], [3, 35]], bars:{show:true, fill:1}, label:'$60-100K', 
color:'#7a5c99'};
s2 = {data:[[1, 0], [5, 30]], bars:{show:true, fill:1}, label:'$30K-$60K', 
color:'#7a995c'};
s3 = {data:[[1, 0], [7, 15]], bars:{show:true, fill:1}, label:'&lt;$30K', 
color:'#b79e72'};
$.plot($('#p_graph2'), [s0,s1,s2,s3], {xaxis:xax,yaxis:yax, legend: {container: 
'#lg_graph2'}});
});

Original issue reported on code.google.com by w...@townhog.com on 12 May 2011 at 12:30

Attachments:

GoogleCodeExporter commented 8 years ago
Weird, I've never seen that before. Would you mind making a little example, 
maybe starting off from basic.html and see if you can reproduce it? Please 
mention your browser version too.

Original comment by olau%iol...@gtempaccount.com on 3 Jun 2011 at 4:53

GoogleCodeExporter commented 8 years ago
The phenomenon can be seen live on this page: 
http://business.townhog.com/demographics.aspx

I'll try making an example of this effect from basic.html. In the meantime, I 
should add we tested this in IE 6-8, Firefox 4, Safari and Chrome, and all 
produce the same glitch.

Original comment by w...@townhog.com on 3 Jun 2011 at 5:06

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:32

GoogleCodeExporter commented 8 years ago
I haven't been able to reproduce this, and can't get to your demo page.  Could 
you please provide an example?  Thanks!

Original comment by dnsch...@gmail.com on 5 Jun 2012 at 4:21

GoogleCodeExporter commented 8 years ago
Marking as invalid due to no further response for a month.

Original comment by dnsch...@gmail.com on 10 Jul 2012 at 11:38

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 10 Jul 2012 at 11:41