I have created a chart as you can see on the following extract: 
http://data.rfoem.fr/pfz50.htm

You can see that the weekends are not filled in (5-6, 12-13, 19-20 of 
January, etc) between the 28 of February and the 1st of June they are no 
values and between the 5 June and the 1st of July.

 

Is it possible to delete the empty days so as not to have huge gaps between 
the dates ?

 

This function already exists as we can see on Google market.  
http://www.google.com/finance?q=dow+jones&ei=LFoWUeCyOMmZwQOSbw The 
weekends are deleted – so the days where there are no stock market figures 
(including long weekends of 3 or 4 days) the days do not appear.

 

My present configuration is the following:

 

<script type="text/javascript">
    google.load('visualization', '1', {packages: ['annotatedtimeline']});
    function drawVisualization() {
      var data = new google.visualization.DataTable();
   var _chartConfigObject;

 


      data.addColumn('date', 'Date');
      data.addColumn('number', 'PFZ5');
      data.addColumn('string', 'title1');
      data.addColumn('string', 'text1');
      data.addRows(50);

 


data.setValue( 0 , 0, new Date( 2008 , 0 , 2 )); data.setValue( 0 , 1, 
 84.38 );
data.setValue( 1 , 0, new Date( 2008 , 0 , 3 )); data.setValue( 1 , 1, 
 85.06 );
data.setValue( 2 , 0, new Date( 2008 , 0 , 4 )); data.setValue( 2 , 1, 
 83.94 );
data.setValue( 3 , 0, new Date( 2008 , 0 , 7 )); data.setValue( 3 , 1, 
 83.91 );

 

etc

 

 

var annotatedtimeline = new google.visualization.AnnotatedTimeLine(
          document.getElementById('visualization'));
      annotatedtimeline.draw(data, {
                                    //'allValuesSuffix': '', // A suffix 
that is added to all values
                                    'colors': ['black'], 
                                    'displayAnnotations': true,
                                    'displayExactValues': true, // Do not 
truncate values (i.e. using K suffix)
                                    'displayRangeSelector' : true, // Do 
not sow the range selector
                                    'displayZoomButtons': true, // DO not 
display the zoom buttons
                                    'fill': 0, // Fill the area below the 
lines with 20% opacity
                                    'legendPosition': 'newRow', // Can be 
sameRow
                                    //'max': 500,
                                    //'min':  30,
                                    'scaleColumns': [0, 1], // Have two 
scales, by the first and second lines
                                    'scaleType': 'allmaximized', 
                                    'thickness': 2, 
                                    'zoomStartTime': new Date(2008, 0 ,1), 
                                    'zoomEndTime': new Date(2008, 06 ,31)
         });

 

Any help would be appreciated

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


Reply via email to