Unfortunately now there's no way to do that, but we're working on it and hope to have something ready soon.
On Tue, Aug 3, 2010 at 2:59 PM, groupes <[email protected]> wrote: > Hi, > > I've a question about the Legend on packages:['corechart']. > I would like display the Legend even if the attribut is set to 0. > > Example: > > function drawChart() { > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Task'); > data.addColumn('number', 'Task Number'); > data.addRows(3); > data.setValue(0, 0, 'Fail'); > data.setValue(0, 1, 1); > data.setValue(1, 0, 'OK'); > data.setValue(1, 1, 0); > data.setValue(2, 0, 'Ready'); > data.setValue(2, 1, 0); > var chart = new > google.visualization.PieChart(document.getElementById('corechart')); > chart.draw(data, {width: 450, height: 30 }); > } > > data attribute number 1 ('OK') and 2('Ready') have NULL value, but i > would like to print attribut in legend but not on pie chart because > attribut value is null. > > Sorry for my bad English and thx for great API. > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
