Mayank,
  Yes, the bug originally referenced has been fixed. I saw it in my
code, and then there was an update and it's no longer happening. So
it's fixed.
  Not to say there's not something else going on, but the original
issue has been fixed.
  As for your code... I have a little web app that use the
AnnotatedTimeLine (ATL) and it, too, uses checkboxes to include or
exclude lines in the graph. Mine is working fine. The difference I see
in my code versus yours is the showDataColumns() and hideDataColumns()
method calls on the ATL.
  In my code, I use the versions of the methods that take a single
integer argument - not the ones that take a list. Since the default,
for me, is known, the onClick method of the input checkbox simply
calls the JavaScript function and calls either showDataColumns() or
hideDataColumns() with a single argument as only one is changed.
  You might want to try that...
  The second thing I see as a difference in my code is that once the
data sets are on the graph, they are referred to as 0, 1, 2, 3, etc.
I'm not sure about the creation of the DataView from the DataTable,
but you might try referring to the data sets in the ATL as 0, 1, 2, 3,
etc. and not 0, 2, 4, 6 - those are their positions in the original
DataTable and not in the DataView, or the ATL.
  Hope this helps, but I'm pretty sure it's not in the ATL as I'm
doing basically the same thing and it's working just fine for me.

Bob

On Apr 26, 3:52 pm, Mayank Gupta <[email protected]> wrote:
> Is this issue resolved . see the code below its not working
> itschart is global variable , function selectLine get called when a
> check box is clicked there are 3 checkbox, I am trying to do the thing
> same as google finance.
> function drawGraph()
> {
> itsDataView = new google.visualization.DataView(aDataTable);
> itsDataView.setColumns([0,2,4,6]);
> itschart = new google.visualization.AnnotatedTimeLine
> (document.getElementById('gArea'));
> itschart.draw(itsDataView, {width: 700, height: 450, is3D:
> true,displayZoomButtons: false,scaleColumns:
> [0,1,2],scaleType:'allmaximize',colors:['red','black'],
>                                         
> 'displayAnnotationsFilter':true,'allowHtml':true,legendPosition:'newRow',an 
> notationsWidth:
> 80,wmode:'opaque'});
> itschart.hideDataColumn([0,2,4,6]);
>
> }
>
> function selectLine(){
>         itsDataView.showDataColumns([0,2,4,6]);
>         var count=0;
>         if (document.getElementById("check1").checked == false){
>
>                 itschart.hideDataColumn([2]);
>                 count++;
>         }
>         if (document.getElementById("check2").checked == false)
>         {
>
>                 itschart.hideDataColumn([4]);
>                 count++;
>         }
>         if (document.getElementById("check3").checked == false)
>         {
>
>                 itschart.hideDataColumn([6]);
>                 count++;
>         }
>         if (count==3)
>         {
>
>                 itschart.hideDataColumn([0,2]);
>                 document.getElementById("check1").checked=true;
>         }
>
> }
>
> Please Help me :)..
>
> On Mar 3, 4:58 am, VizGuy <[email protected]> wrote:
>
>
>
> > This is indeed a bug.
> > We are looking into it, and will notify as soon as we have any news.
>
> > Thanks for reporting.
> > Regards,
> > VizGuy
>
> > On Tue, Mar 3, 2009 at 2:37 AM, Devel63 <[email protected]> wrote:
>
> > > With more experimentation, I see this same behavior even in the exact
> > > sample code, under IE or FF.
>
> > > To see:
> > >  Hide col0, then show
> > >  Hide col1, then show ... you will not see it!
> > >  Hide col1, then show ... now you will
>
> > > This can be seen even in the associated AJAX API playground, by
> > > modifying it to say:
> > >  t1 = new google.visualization.AnnotatedTimeLine
> > > (document.getElementById('visualization'));
> > >  t1.draw(response.getDataTable(), {'displayAnnotations': true});
> > >  t1.hideDataColumns(0);
> > >  t1.showDataColumns(0);
> > >  t1.hideDataColumns(1);
> > >  t1.showDataColumns(1);
>
> > > Help!  Am I misunderstanding the way this is supposed to work?
>
> > > On Mar 2, 2:19 pm, Devel63 <[email protected]> wrote:
> > > > Using the timeline from the API example code, if I call hideDataColumns
> > > > (1), then showDataColumns(1), everything works as expected.
>
> > > > But if I recreate the example with a third data series, sometimes a
> > > > data series that I hide will not reappear when I call showDataColumns
> > > > again.  By hiding and showing it again, it will then reappear.
>
> > > > This occurs 50% of the time, but I haven't quite figured out the
> > > > pattern.
>
> > > > Any ideas?
>
> > > > Here is the code I added to the example:
>
> > > >         data.addColumn('number', 'Mine');
> > > >         data.addColumn('string', 'title3');
> > > >         data.addColumn('string', 'text3');
>
> > > >         data.setValue(0, 7, 10000);
> > > >         data.setValue(1, 7, 34045);
> > > >         data.setValue(2, 7, 55022);
> > > >         data.setValue(5, 7, 75284);
> > > >         data.setValue(5, 8, 'New Title');
> > > >         data.setValue(5, 9, 'New Text');
--~--~---------~--~----~------------~-------~--~----~
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