User (Legacy) Posted April 2, 2006 Report Share Posted April 2, 2006 Hi I can't get my chart transparent. I have this jsp-code: <% ChartServer chart = new ChartServer(application,request,response ); chart.setGallery(Gallery.PIE); chart.setChart3D(false); Pie pie = (Pie)chart.getGalleryObj(); pie.setShadows(true); pie.setMinPercentage(80); chart.setInsideColor(new java.awt.Color(0,0,0,0)); chart.setPageColor(new java.awt.Color(0,0,0,0)); chart.setBackColor(new java.awt.Color(0,0,0,0)); chart.openData(COD.VALUES, 1, 3); chart.setValue(0, 0, 25); chart.setValue(0, 1, 45); chart.setValue(0, 2, 30); chart.closeData(COD.VALUES); chart.setPointLabels(true); chart.setPointLabelColor(java.awt.Color.black); chart.setLegendBox(true); chart.getLegendBoxObj().setDocked(Docked.BOTTOM); chart.getLegendBoxObj().setAlignment(ToolAlignment.CENTER); chart.getLegendBoxObj().setToolBorder(ToolBorder.EXTERNAL); //Border ImageBorder myBorder; synchronized(this.getServletContext()){ myBorder = new ImageBorder(ImageBorderType.EMBOSS); } chart.setBorderObject(myBorder); chart.getHtmlData("400", "350", "PNG");%> Thanks Troels Link to comment Share on other sites More sharing options...
Software FX Posted April 3, 2006 Report Share Posted April 3, 2006 I am guessing your problem is when you view your Chart(png) in Microsoft Explorer. If it is see here: http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html Are you seeing this problem in IE Only? -c "TJM" <nospam@nospam.dk> wrote in message news:TvoCpUmVGHA.3144@webserver3.softwarefx.com... > Hi > > I can't get my chart transparent. > > I have this jsp-code: > > <% > ChartServer chart = new ChartServer(application,request,response ); > > chart.setGallery(Gallery.PIE); > chart.setChart3D(false); > > Pie pie = (Pie)chart.getGalleryObj(); > pie.setShadows(true); > pie.setMinPercentage(80); > > chart.setInsideColor(new java.awt.Color(0,0,0,0)); > chart.setPageColor(new java.awt.Color(0,0,0,0)); > chart.setBackColor(new java.awt.Color(0,0,0,0)); > > chart.openData(COD.VALUES, 1, 3); > chart.setValue(0, 0, 25); > chart.setValue(0, 1, 45); > chart.setValue(0, 2, 30); > chart.closeData(COD.VALUES); > > chart.setPointLabels(true); > chart.setPointLabelColor(java.awt.Color.black); > > chart.setLegendBox(true); > chart.getLegendBoxObj().setDocked(Docked.BOTTOM); > chart.getLegendBoxObj().setAlignment(ToolAlignment.CENTER); > chart.getLegendBoxObj().setToolBorder(ToolBorder.EXTERNAL); > > //Border > ImageBorder myBorder; > synchronized(this.getServletContext()){ > myBorder = new ImageBorder(ImageBorderType.EMBOSS); > } > chart.setBorderObject(myBorder); > > chart.getHtmlData("400", "350", "PNG");%> > > Thanks > > Troels > Link to comment Share on other sites More sharing options...
Software FX Posted April 4, 2006 Report Share Posted April 4, 2006 Hi Troels, I believe you have found a bug. I'll let uou know when we have a fix available. Thanks, GA Software FX "TJM" <nospam@nospam.dk> wrote in message news:TvoCpUmVGHA.3144@webserver3.softwarefx.com... > Hi > > I can't get my chart transparent. > > I have this jsp-code: > > <% > ChartServer chart = new ChartServer(application,request,response ); > > chart.setGallery(Gallery.PIE); > chart.setChart3D(false); > > Pie pie = (Pie)chart.getGalleryObj(); > pie.setShadows(true); > pie.setMinPercentage(80); > > chart.setInsideColor(new java.awt.Color(0,0,0,0)); > chart.setPageColor(new java.awt.Color(0,0,0,0)); > chart.setBackColor(new java.awt.Color(0,0,0,0)); > > chart.openData(COD.VALUES, 1, 3); > chart.setValue(0, 0, 25); > chart.setValue(0, 1, 45); > chart.setValue(0, 2, 30); > chart.closeData(COD.VALUES); > > chart.setPointLabels(true); > chart.setPointLabelColor(java.awt.Color.black); > > chart.setLegendBox(true); > chart.getLegendBoxObj().setDocked(Docked.BOTTOM); > chart.getLegendBoxObj().setAlignment(ToolAlignment.CENTER); > chart.getLegendBoxObj().setToolBorder(ToolBorder.EXTERNAL); > > //Border > ImageBorder myBorder; > synchronized(this.getServletContext()){ > myBorder = new ImageBorder(ImageBorderType.EMBOSS); > } > chart.setBorderObject(myBorder); > > chart.getHtmlData("400", "350", "PNG");%> > > Thanks > > Troels > Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 4, 2006 Author Report Share Posted April 4, 2006 Both IE and Firefox seams to have the problem. /TJM "Software FX Support" <support@softwarefx.com> wrote in message news:kUWs4F3VGHA.3544@webserver3.softwarefx.com... >I am guessing your problem is when you view your Chart(png) in Microsoft >Explorer. > > If it is see here: > http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html > Are you seeing this problem in IE Only? > > -c > > "TJM" <nospam@nospam.dk> wrote in message > news:TvoCpUmVGHA.3144@webserver3.softwarefx.com... >> Hi >> >> I can't get my chart transparent. >> >> I have this jsp-code: >> >> <% >> ChartServer chart = new ChartServer(application,request,response ); >> >> chart.setGallery(Gallery.PIE); >> chart.setChart3D(false); >> >> Pie pie = (Pie)chart.getGalleryObj(); >> pie.setShadows(true); >> pie.setMinPercentage(80); >> >> chart.setInsideColor(new java.awt.Color(0,0,0,0)); >> chart.setPageColor(new java.awt.Color(0,0,0,0)); >> chart.setBackColor(new java.awt.Color(0,0,0,0)); >> >> chart.openData(COD.VALUES, 1, 3); >> chart.setValue(0, 0, 25); >> chart.setValue(0, 1, 45); >> chart.setValue(0, 2, 30); >> chart.closeData(COD.VALUES); >> >> chart.setPointLabels(true); >> chart.setPointLabelColor(java.awt.Color.black); >> >> chart.setLegendBox(true); >> chart.getLegendBoxObj().setDocked(Docked.BOTTOM); >> chart.getLegendBoxObj().setAlignment(ToolAlignment.CENTER); >> chart.getLegendBoxObj().setToolBorder(ToolBorder.EXTERNAL); >> >> //Border >> ImageBorder myBorder; >> synchronized(this.getServletContext()){ >> myBorder = new ImageBorder(ImageBorderType.EMBOSS); >> } >> chart.setBorderObject(myBorder); >> >> chart.getHtmlData("400", "350", "PNG");%> >> >> Thanks >> >> Troels >> > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 4, 2006 Author Report Share Posted April 4, 2006 Sounds good. /TJM "SoftwareFX Support" <noreply> wrote in message news:FwZ4u7$VGHA.220@webserver3.softwarefx.com... > Hi Troels, > I believe you have found a bug. I'll let uou know when we have a fix > available. > > Thanks, > GA > Software FX > > > "TJM" <nospam@nospam.dk> wrote in message > news:TvoCpUmVGHA.3144@webserver3.softwarefx.com... >> Hi >> >> I can't get my chart transparent. >> >> I have this jsp-code: >> >> <% >> ChartServer chart = new ChartServer(application,request,response ); >> >> chart.setGallery(Gallery.PIE); >> chart.setChart3D(false); >> >> Pie pie = (Pie)chart.getGalleryObj(); >> pie.setShadows(true); >> pie.setMinPercentage(80); >> >> chart.setInsideColor(new java.awt.Color(0,0,0,0)); >> chart.setPageColor(new java.awt.Color(0,0,0,0)); >> chart.setBackColor(new java.awt.Color(0,0,0,0)); >> >> chart.openData(COD.VALUES, 1, 3); >> chart.setValue(0, 0, 25); >> chart.setValue(0, 1, 45); >> chart.setValue(0, 2, 30); >> chart.closeData(COD.VALUES); >> >> chart.setPointLabels(true); >> chart.setPointLabelColor(java.awt.Color.black); >> >> chart.setLegendBox(true); >> chart.getLegendBoxObj().setDocked(Docked.BOTTOM); >> chart.getLegendBoxObj().setAlignment(ToolAlignment.CENTER); >> chart.getLegendBoxObj().setToolBorder(ToolBorder.EXTERNAL); >> >> //Border >> ImageBorder myBorder; >> synchronized(this.getServletContext()){ >> myBorder = new ImageBorder(ImageBorderType.EMBOSS); >> } >> chart.setBorderObject(myBorder); >> >> chart.getHtmlData("400", "350", "PNG");%> >> >> Thanks >> >> Troels >> > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.