Hi Peter, It is possible to embed with 3 levels of nesting, and more, for example
http://chart.apis.google.com/chart?cht=lc&chs=300x325&chd=t:10,20,40,80,90,95,99|20,30,40,50,60,70,80|0&chco=3072F3,ff0000,00aaaa&chm=o,000000,2,1000,10&chdlp=t&chfd=2,y,0,25,.01,50*(sin(y)%2B1)&chem=y;s=ecb;d=edge_bl,0,000,888888,cht,lxy,chs,200x200,chf,bg@,s@,888888,chd,t:10@,20@,40@,80@,90@,95@,99@|20@,30@,40@,50@,60@,70@,80,chem,y@;s=ec@;d=bl@,chs@,80x80@,cht@,qr@,chl@,Hello%252520world@,choe@,UTF-8@,chf@,bg@@@,s@@@,00000000@;ds=0@;dp=2;ds=0;dp=2 However, there are two points to take into account - escaping becomes really tricky. I didn't look at your URL in detail, but I think that you are doing it right. See my URL for an example - there are limits on the complexity of the full graph; nesting graphs increases the complexity significantly, as does the usage of "ecb" (which basically adds yet another level of nesting). When the limits are exceeded, we stop drawing -- but what's already drawn stays, in some cases (that's why you don't get a totally empty graph). You'll notice that my example is significantly simpler than yours. On Fri, Dec 10, 2010 at 11:59, Peter Waher <[email protected]> wrote: > Hello > > Question: Is it possible to embed a chart in an already embedded > chart? I've succesfully interfaced all features and diagram formats in > the Google Chart API, including embedding a chart in another, but when > I try to embed a chart in an already embedded charts (i.e. 3 levels of > nesting), the second chart (with it's third chart) vanishes. > > Since I cannot find an example of this in the documentation (or a > statement that it should be possible), I have to ask if it is > possible. > > I try with the following url: > > > http://0.chart.apis.google.com/chart?chs=600x400&cht=bhg&chf=c,lg,45,444444,0,CCCCCC,1|bg,s,EEEEEE&chm=D,FF0000,0,0,5&chd=e:MzZmmZzM--&chds=0,50&chg=10,10,1,3&chem=y;s=ecb;d=edge_lt,10,404020,FFFFA0,chs,300x325,cht,lxy,chf,bg@,s@,FFFFA0,chls,2@,4@,1,chm,s@,000000@,0@,@,5@|s@,000000@,1@,@,5,chd,e:GaMzZmzM5m8y-W@,MzTNZmgAmZszzM@,__@,DNGaOFWZ2Z,chds,0@,100@,0@,100@,@,0@,100,chem,y@;s%3Decb@;d%3Dedge_br@,0@,00D0D0@,80FFFF@,chs@,150x90@,chl@,@,cht@,p@,chf@,bg@@@,s@@@,80FFFF@,chd@,e:VVqq--@,chds@,0@@@,30@,chdl@,Shire@@@|Welsh@@@|Clydesdale@;ds%3D0@;dp%3D3,chco,3072F3@,FF0000@,00AAAA,chdl,Ponies@|Unicorns,chdlp,t;ds=0;dp=0&chbh=a,5,10&chdl=a|b|c|d|e&chdlp=r&chco=FF0000|00FF00|0000FF|FFFF00|00FFFF<http://0.chart.apis.google.com/chart?chs=600x400&cht=bhg&chf=c,lg,45,444444,0,CCCCCC,1%7Cbg,s,EEEEEE&chm=D,FF0000,0,0,5&chd=e:MzZmmZzM--&chds=0,50&chg=10,10,1,3&chem=y;s=ecb;d=edge_lt,10,404020,FFFFA0,chs,300x325,cht,lxy,chf,bg@,s@,FFFFA0,chls,2@,4@,1,chm,s@,000000@,0@,@,5...@%7cs@,000000@,1@,@,5,chd,e:GaMzZmzM5m8y-W@,MzTNZmgAmZszzM@,__@,DNGaOFWZ2Z,chds,0@,100@,0@,100@,@,0@,100,chem,y@;s%3Decb@;d%3Dedge_br@,0@,00D0D0@,80FFFF@,chs@,150x90@,chl@,@,cht@,p@,chf@,bg@@@,s@@@,80FFFF@,chd@,e:VVqq--@,chds@,0@@@,30@,chdl@,Shire@@@%7CWelsh@@@%7CClydesdale@;ds%3D0@;dp%3D3,chco,3072F3@,FF0000@,00AAAA,chdl,pon...@%7cunicorns,chdlp,t;ds=0;dp=0&chbh=a,5,10&chdl=a%7Cb%7Cc%7Cd%7Ce&chdlp=r&chco=FF0000%7C00FF00%7C0000FF%7CFFFF00%7C00FFFF> > > (This has a chart, with an embedded chart and a chart embedded in the > 2nd chart. However, only the first chart is displayed.) > > However, removing the 3rd chart, the first two charts display > correctly: > > > http://0.chart.apis.google.com/chart?chs=600x400&cht=bhg&chf=c,lg,45,444444,0,CCCCCC,1|bg,s,EEEEEE&chm=D,FF0000,0,0,5&chd=e:MzZmmZzM--&chds=0,50&chg=10,10,1,3&chem=y;s=ecb;d=edge_lt,10,404020,FFFFA0,chs,300x325,cht,lxy,chf,bg@,s@,FFFFA0,chls,2@,4@,1,chm,s@,000000@,0@,@,5@|s@,000000@,1@,@,5,chd,e:GaMzZmzM5m8y-W@,MzTNZmgAmZszzM@,__@,DNGaOFWZ2Z,chds,0@,100@,0@,100@,@,0@,100,chco,3072F3@,FF0000@,00AAAA,chdl,Ponies@|Unicorns,chdlp,t;ds=0;dp=0&chbh=a,5,10&chdl=a|b|c|d|e&chdlp=r&chco=FF0000|00FF00|0000FF|FFFF00|00FFFF<http://0.chart.apis.google.com/chart?chs=600x400&cht=bhg&chf=c,lg,45,444444,0,CCCCCC,1%7Cbg,s,EEEEEE&chm=D,FF0000,0,0,5&chd=e:MzZmmZzM--&chds=0,50&chg=10,10,1,3&chem=y;s=ecb;d=edge_lt,10,404020,FFFFA0,chs,300x325,cht,lxy,chf,bg@,s@,FFFFA0,chls,2@,4@,1,chm,s@,000000@,0@,@,5...@%7cs@,000000@,1@,@,5,chd,e:GaMzZmzM5m8y-W@,MzTNZmgAmZszzM@,__@,DNGaOFWZ2Z,chds,0@,100@,0@,100@,@,0@,100,chco,3072F3@,FF0000@,00AAAA,chdl,pon...@%7cunicorns,chdlp,t;ds=0;dp=0&chbh=a,5,10&chdl=a%7Cb%7Cc%7Cd%7Ce&chdlp=r&chco=FF0000%7C00FF00%7C0000FF%7CFFFF00%7C00FFFF> > > If it should be possible, any clue as to what is wrong? > > Thanks in advance, > Peter Waher > > -- > You received this message because you are subscribed to the Google Groups > "Google Chart API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-chart-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-chart-api?hl=en. > > -- *Google Switzerland GmbH - Identifikationsnummer: CH-020.4.028.116-1 *** -- You received this message because you are subscribed to the Google Groups "Google Chart 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-chart-api?hl=en.
