Received: by 10.52.23.70 with SMTP id k6mr16063764vdf.1.1320430023333; Fri, 04 Nov 2011 11:07:03 -0700 (PDT) X-BeenThere: protovis@googlegroups.com Received: by 10.221.13.132 with SMTP id pm4ls1939441vcb.5.canary; Fri, 04 Nov 2011 11:07:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.30.84 with SMTP id q20mr3564485vdh.1.1320430022430; Fri, 04 Nov 2011 11:07:02 -0700 (PDT) Received: by s10g2000yqa.googlegroups.com with HTTP; Fri, 4 Nov 2011 11:07:02 -0700 (PDT) Date: Fri, 4 Nov 2011 11:07:02 -0700 (PDT) In-Reply-To: <99282A98-58B8-4A04-BB26-37EB68654D9F@gmail.com> References: <178be635-dc91-464b-8928-b80087a42144@s10g2000yqa.googlegroups.com> <99282A98-58B8-4A04-BB26-37EB68654D9F@gmail.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe) Message-ID: Subject: Re: Grouped Bar Chart Selecions duplicate problem. From: Marvalo To: protovis Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi thanks for you reply you helped find the solution. Instead of storing the index in the def("sel", []) I store the index of the parent and the child as a string seems to work well!. var id =3D this.parent.index+":"+this.index; Marvalo On Nov 4, 4:28=A0pm, Mike Bostock wrote: > Correct; this is a bit tricky to do with Protovis, because normally defs = and other property definitions are shared by all instances of a mark. There= 's a special case that allows you to override a def for a mark that is the = target of a user event, but I'm not sure that applies to its parent. > > You'll have an easier time doing this in D3, if you can switch. >