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',annotationsWidth:
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
-~----------~----~----~----~------~----~------~--~---