That's right I have too many labels appearing on the x-axis. Is it possible
to control some how the number of these labels?

This is my drawChart function, where the arrays dataWiki, n_rev and
n_rev_main have a lot of values.

function drawChart() {

      data = new google.visualization.DataTable();
      data.addColumn('string', 'Year');
      data.addColumn('number', 'Talk Page');
      data.addColumn('number', 'Article Page');
      data.addRows(dataWiki.length);

      for(var i=0;i<dataWiki.length;i++){
        data.setValue(i, 0, dataWiki[i]);
        data.setValue(i, 1, n_rev[i]);
        data.setValue(i, 2, n_rev_main[i]);
      }


      div = document.getElementById('chart_div');
      div.innerHTML = '';



      var textCaps = text.replace(/_/g," ");      //SUBSTITUI ESPAƇOS POR
UNDERSCORE

      chart = new google.visualization.AreaChart(div);
      chart.draw(data, {legend: 'bottom', title: 'Talk Page vs Article Page
- '+ textCaps});

2009/3/10 VizBoy <[email protected]>

> I'm not sure I understand...
> Do you mean limit the number of labels that appear on the x-axis?
> Can you send us a link or a code snippet to look at it?
>
> - VizBoy.
>
>
> On Tue, Mar 10, 2009 at 11:52 AM, Joao Almeida <[email protected]>wrote:
>
>>
>> Hey everyone,
>>
>> I'm having a problem with the area chart display. I have many values
>> in my table, so I get many values displayed in the x-axis of my chart.
>> Is there any way to control the number of values showing in x-axis?
>>
>> Thanks in advance
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to