The relative inflexibility of axis formatting comes up rather frequently,
so I made a feature request to expand formatting capabilities:
https://code.google.com/p/google-visualization-api-issues/issues/detail?id=1232.
You can "star" the issue to get notified of updates.
On Monday, June 10, 2013 12:51:47 PM UTC-4, asgallant wrote:
>
> No, you can't customize the labels like that.
>
> On Friday, June 7, 2013 4:43:44 PM UTC-4, Flávio Tomazio wrote:
>>
>> And just change de label in vertical axis, is possible? Calcute the chart
>> with total minutes, 93:30 become 5610, and display a customized label, in
>> case, 93:30
>>
>> Em sexta-feira, 7 de junho de 2013 17h39min32s UTC-3, asgallant escreveu:
>>>
>>> There is no data type in the API for handling duration in hours and
>>> minutes like that. Probably the best you could do is convert all data to
>>> one unit (eg, 98:30 becomes 98.5 hours).
>>>
>>> On Friday, June 7, 2013 4:25:36 PM UTC-4, Flávio Tomazio wrote:
>>>>
>>>> Hi, i tried create a chart for work time by month using Area Chart, but
>>>> i don't know what parameters used to display this data like time.
>>>>
>>>> Example:
>>>> Jan/13 - 98:30 hours and minutes
>>>> Feb/13 - 50:30 hours and minutes
>>>>
>>>> MyScript:
>>>>
>>>> function drawVisualization() {
>>>> // Some raw data (not necessarily accurate)
>>>> var data = google.visualization.arrayToDataTable([
>>>> ['Month/Year', 'Hours'],
>>>> ['Jan/13', '98:30'],
>>>> ['Feb/13', '50:30']
>>>> ]);
>>>>
>>>> // Create and draw the visualization.
>>>> var ac = new
>>>> google.visualization.AreaChart(document.getElementById('visualization-time'));
>>>> ac.draw(data, {
>>>> title : 'Time',
>>>> isStacked: true,
>>>> width: '100%',
>>>> height: 400,
>>>> vAxis: {title: "Hours"},
>>>> hAxis: {title: "Month/Year"}
>>>> });
>>>> }
>>>>
>>>> Whats is wrong?
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.