User (Legacy) Posted October 6, 2004 Report Share Posted October 6, 2004 I'm using ChartFX for Java v6.0. I cant seem to get any of the properties on the Y-Axis to take effect. We want to set the title. This is the relevant line of code I'm using to do this: m_chart.getAxisY().getTitle().setText("test"); any ideas why this doesnt work? Chris Link to comment Share on other sites More sharing options...
Software FX Posted October 6, 2004 Report Share Posted October 6, 2004 Hi, If I run this code: ChartServer chart1 = new ChartServer(application,request,response ); chart1.getAxisX().getTitle().setText("X-axis Title"); chart1.getAxisY().getTitle().setText("Y-axis Title"); I get both Axis Titles, so I guess it must be something else in your code that is affecting the Y-Axis. Can you post a code sample that reproduces the issue? GA Software FX, Inc. "Chris Bowditch" <cbowditch@thunderhead.com> wrote in message news:x4zLpK4qEHA.4004@webserver3.softwarefx.com... > I'm using ChartFX for Java v6.0. > > I cant seem to get any of the properties on the Y-Axis to take effect. We > want to set the title. This is the relevant line of code I'm using to do > this: > > m_chart.getAxisY().getTitle().setText("test"); > > any ideas why this doesnt work? > > Chris > Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 6, 2004 Author Report Share Posted October 6, 2004 Okay, here is the code that reproduces the problem: Chart testChart = new Chart(); testChart.setGallery(Gallery.BAR); testChart.openData(COD.VALUES, 1, 10); for (int i=0;i<10;i++) { testChart.setValue(0, i, Math.random() * 100); } testChart.closeData(COD.VALUES); testChart.getTitle(0).setText("Title 0"); testChart.getAxisY().getTitle().setText("percent"); testChart.setImgWidth(300); testChart.setImgHeight(300); testChart.setOutputWriter(new SVGWriter()); testChart.exportChart(FileFormat.EXTERNAL, "c:\\chart1java.svg" ); I should point out that I'm using Chart FX for Java Development. Will it make a difference if I use the production version instead? Thanks, Chris "SoftwareFX Support" <support@softwarefx.com> wrote in message news:ypIaO95qEHA.3136@webserver3.softwarefx.com... > Hi, > > If I run this code: > > ChartServer chart1 = new ChartServer(application,request,response ); > chart1.getAxisX().getTitle().setText("X-axis Title"); > chart1.getAxisY().getTitle().setText("Y-axis Title"); > > I get both Axis Titles, so I guess it must be something else in your code > that is affecting the Y-Axis. Can you post a code sample that reproduces > the issue? > > GA > Software FX, Inc. > > > "Chris Bowditch" <cbowditch@thunderhead.com> wrote in message > news:x4zLpK4qEHA.4004@webserver3.softwarefx.com... >> I'm using ChartFX for Java v6.0. >> >> I cant seem to get any of the properties on the Y-Axis to take effect. We >> want to set the title. This is the relevant line of code I'm using to do >> this: >> >> m_chart.getAxisY().getTitle().setText("test"); >> >> any ideas why this doesnt work? >> >> Chris >> > > Link to comment Share on other sites More sharing options...
Software FX Posted October 6, 2004 Report Share Posted October 6, 2004 The version doesn't make any difference. What it seems to be the problem is that Axis titles are not showing up when the output is SVG, but they show up fine for any other type: PNG, JPG and FLASH. I'll log the bug, and I'll let you know when we have a fix for it. GA Software FX, Inc. "Chris Bowditch" <cbowditch@thunderhead.com> wrote in message news:TAotrx7qEHA.4004@webserver3.softwarefx.com... > Okay, here is the code that reproduces the problem: > > Chart testChart = new Chart(); > testChart.setGallery(Gallery.BAR); > testChart.openData(COD.VALUES, 1, 10); > for (int i=0;i<10;i++) { > testChart.setValue(0, i, Math.random() * 100); > } > testChart.closeData(COD.VALUES); > testChart.getTitle(0).setText("Title 0"); > testChart.getAxisY().getTitle().setText("percent"); > testChart.setImgWidth(300); > testChart.setImgHeight(300); > testChart.setOutputWriter(new SVGWriter()); > testChart.exportChart(FileFormat.EXTERNAL, "c:\\chart1java.svg" ); > > I should point out that I'm using Chart FX for Java Development. Will it > make a difference if I use the production version instead? > > Thanks, > > Chris > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:ypIaO95qEHA.3136@webserver3.softwarefx.com... >> Hi, >> >> If I run this code: >> >> ChartServer chart1 = new ChartServer(application,request,response ); >> chart1.getAxisX().getTitle().setText("X-axis Title"); >> chart1.getAxisY().getTitle().setText("Y-axis Title"); >> >> I get both Axis Titles, so I guess it must be something else in your code >> that is affecting the Y-Axis. Can you post a code sample that reproduces >> the issue? >> >> GA >> Software FX, Inc. >> >> >> "Chris Bowditch" <cbowditch@thunderhead.com> wrote in message >> news:x4zLpK4qEHA.4004@webserver3.softwarefx.com... >>> I'm using ChartFX for Java v6.0. >>> >>> I cant seem to get any of the properties on the Y-Axis to take effect. >>> We want to set the title. This is the relevant line of code I'm using to >>> do this: >>> >>> m_chart.getAxisY().getTitle().setText("test"); >>> >>> any ideas why this doesnt work? >>> >>> Chris >>> >> >> > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.