I've never seen the "pattern" parameter have any effect on the axis labels
(see example: http://jsfiddle.net/asgallant/w2t6B/). Likely what you saw
was the string-type axis.
On Tuesday, April 29, 2014 5:13:08 PM UTC-4, cyb wrote:
>
> Hi,
>
> the calc function is now working but i must do some testing i will update
> then my post on StackOverflow..
>
> but why must i set the hAxis.format option ? should this look like this?
> hAxis.format : {format: 'yyyyMMdd'};
>
> but i dont understand why i must do that.. in my old implemetation(there i
> use no ChartWrapper) i have set the pattern value to 'yyyyMMdd' and it
> worked out of the box i must not set hAxis or other things..
>
> the ChartWrapper solution did work, if i delete the pattern value from my
> DataTyble... then the v: Date(2011,9,1) is automatically transformed to
> "9.1.2001"
>
>
>
> Am Sonntag, 27. April 2014 21:36:02 UTC+2 schrieb cyb:
>>
>> Hi,
>>
>> at the moment i use a switch case for changing different charts like this:
>>
>> var chart=null;
>>> switch (chartType) {
>>> case 1:
>>> chart=new google.visualization.LineChart(id);
>>>
>>> break;
>>> case 2:
>>> chart=new google.visualization.ColumnChart(id);
>>>
>>> break;
>>> }
>>> chart.draw(...);
>>
>>
>>
>> i have only one chart object for all charts, if i add a error listener
>> like this :
>>
>> google.visualization.events.addListener(chart, 'error', function (err)
>> {.....});
>>
>> must i do this for every chart ? i mean an extra listener for the
>> LineChart and one for the ColumChart or can i only create one listener with
>> the chart object?
>>
>>
>> or is it better to use a chartWrapper ? if i use a chart wrapper i can
>> add only this chartwarapper to the error handler !?
>>
>> and last question.. the chartWrapper loads the charts dynamicly, but if i
>> add this in my code "google.load("visualization", "1", {packages:["table",
>> "controls", "corechart","geomap","geochart"]});"
>> did the charWrapper then load the charts from my HDD(because the charts
>> already loaded) or did he trys to load the charts form the internet ?
>>
>>
>>
>>
>>
--
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.
For more options, visit https://groups.google.com/d/optout.