gmmoraesbr / flot

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

Not Stacking! #369

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello Guys! Need your help, i`m a new programmer and i dont know why my bar 
graph do not stack

<script id="desfazimentosChar" language="javascript" type="text/javascript">
jQuery(function () {
    var dados = <%= stbDadosChart.toString() %>;
    var dadosCompras = <%= stbDadosChartCompras.toString() %>;
    var dadosDesfazimento = <%= stbDadosChartDesfazimento.toString() %>;

    jQuery.plot(jQuery("#placeholder"),[ {label:"Compras",data:dadosCompras},
{label: "Desfazimento",data:dadosDesfazimento},
{label: '<%= chartLabel %>',data:dados},], {

bars:{
show: true,
stackBar: true
},              
xaxis: {ticks: <%= stbLabelsChart.toString() %>}
});   
});
</script>

Tks

Original issue reported on code.google.com by marcelo....@gmail.com on 24 Jun 2010 at 6:30

GoogleCodeExporter commented 8 years ago
from a quick look at your code, it appears it won't stack because you aren't 
using the correct syntax.

bars : {
      show : true
},
 series : {
    stack : true
}

try that in place of your code.

Original comment by Buddy...@gmail.com on 15 Jul 2010 at 4:04

GoogleCodeExporter commented 8 years ago
If you need more help, try the forum/mailing list.

Original comment by olau%iol...@gtempaccount.com on 14 Dec 2010 at 4:39

GoogleCodeExporter commented 8 years ago

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