dishi Posted August 24, 2007 Report Share Posted August 24, 2007 Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> While using ChartFX, I am facing a problem with Data Editor. Actually in my chart label Quote Link to comment Share on other sites More sharing options...
GabrielA Posted August 24, 2007 Report Share Posted August 24, 2007 Can you attach a image of the chart showing the dataeditor with the missing labels? That will help me to offer you some sugestions. Regarding the javascript error, it means that the browser wasn't able to display the .NET chart. It may be because of the server configuration (i.e. missing the mime type), or the browser configuration (i.e. trusting settings: trust must be set to full). For more information please see the section "Active Charts" in the docuemtation. Quote Link to comment Share on other sites More sharing options...
dishi Posted August 24, 2007 Author Report Share Posted August 24, 2007 Hi, Thanks for reply. i am attaching my chart's picture here. Thanks & Regards Dishant Quote Link to comment Share on other sites More sharing options...
dishi Posted August 24, 2007 Author Report Share Posted August 24, 2007 Hi, I change my server setting, now i am able to see the chart but not able to see all information in data editor. Thanks & Regards Dishi Quote Link to comment Share on other sites More sharing options...
Frank Posted August 27, 2007 Report Share Posted August 27, 2007 There is not enough space to display it due to the long x-axis labels. Scrolling is not supported in SVG rendering. Quote Link to comment Share on other sites More sharing options...
GabrielA Posted August 27, 2007 Report Share Posted August 27, 2007 There are some workarounds to improve this, but the issue here, as you said, is that your legends are too long. 1) Use KeyLegs or short legends. chart1.getLegend().setItem(0,"This is the month of January");chart1.getLegend().setItem(1,"This is the month of February");chart1.getLegend().setItem(2,"This is the month of March");chart1.getLegend().setItem(3,"This is the month of April");chart1.getAxisX().setLabelAngle((short)90);// ChartFX will use the keyleg instead of the legendchart1.getKeyLeg().setItem(0,"Jan");chart1.getKeyLeg().setItem(1,"Feb");chart1.getKeyLeg().setItem(2,"Mar");chart1.getKeyLeg().setItem(3,"Apr");chart1.setLegendBox(true);chart1.getLegendBoxObj().setDocked(Docked.BOTTOM);chart1.setDataEditor(true); See attached img1.png 2) Brake the legends by adding like brakes. You may have to turn off the header in the dataeditor because it may not fit, but you can get the data to show in sync with the chart. chart1.setNValues(4);chart1.getLegend().setItem(0,"This is the month\nof January");chart1.getLegend().setItem(1,"This is the month\nof February");chart1.getLegend().setItem(2,"This is the month\nof March");chart1.getLegend().setItem(3,"This is the month\nof April");chart1.getAxisX().setLabelAngle((short)90);// ChartFX will use the keyleg instead of the legendchart1.setDataEditor(true);chart1.getDataEditorObj().setShowHeader(false); See attached img2.png (in next post) Quote Link to comment Share on other sites More sharing options...
GabrielA Posted August 27, 2007 Report Share Posted August 27, 2007 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.