slacorte Posted November 3, 2011 Report Share Posted November 3, 2011 1. Is there a way to define and set custom marker shapes (i.e 'a hollow circle') ? 2. I also am looking for a way to set the border around the plot area to solid black. Currently it appears to be using the minor grid line color. 3. How can I create an all white chart with no palette? The default palette has a blue top after I set the background color to white. Thanks! Steve Quote Link to comment Share on other sites More sharing options...
AndreG Posted November 9, 2011 Report Share Posted November 9, 2011 1. There is a sample that ships with the product, called custom marker and its under "visual attributes". Basically: chart1.getAllSeries().setMarkerShape(MarkerShape.PICTURE); chart1.getAllSeries().setMarkerSize((short)8); chart1.getLegendBox().setVisible(true); javax.swing.ImageIcon ico = new javax.swing.ImageIcon(application.getRealPath("/") + "/data/workstation2.png"); java.awt.Image img = ico.getImage(); chart1.getSeries().get(0).setPicture(img); 2. Try setting the color of both axis lines chart1.getAxisY().getLine().setColor(chart1.getAxisX().getLine().setColor( 3. Set the background to a solid color, not a gradient color. Quote Link to comment Share on other sites More sharing options...
slacorte Posted November 14, 2011 Author Report Share Posted November 14, 2011 Thanks Andreg, Your suggestion to set the color of both axis lines worked great for question 2! For question 3, I set the backgound color by calling: chart1.setBackground(new SolidBackground(Color.WHITE)) and that worked great! For question 1, I prefer not to use a picture shape. I found the following description in the API for the SeriesAttribute class and setMarkerFont method: " You can extend the point types available by setting the PointAttributes.setMarkerShape(com.softwarefx.chartfx.server.MarkerShape) to an integer representing the negative ASCII code from any font. By default, Chart FX uses the Wingdings font table to handle additional point types" I tried doing this in several ways with no success last week. I tried setting the enum value to -79, as well asll trying to cast an Integer object as a MarkerShape to this method. Is this functionality available? Are there any examples? Thanks again, Steve 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.