Hi,

1. We have code that decides which labels to show, in order not to clutter
too many lables together. This code does this automatically, and you cannot
control it.
However, if in your case the labels do show up cluttered, we consider this
as a bug. Please provide a screenshot and your dataset so we can see it in
action. Only seeing the loop without the values in dataWiki isn't helpful..

2. You could try, as a workaround, to specify some labels as empty string
('') and then they won't show.

- VizBoy.

On Tue, Mar 10, 2009 at 9:05 PM, Joao Miguel Almeida <[email protected]>wrote:

> 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