Jump to content
Software FX Community

AndreG

Staff
  • Posts

    333
  • Joined

  • Last visited

Everything posted by AndreG

  1. The FieldMap has to have the field name as the first parameter. This is what it should look like (you have it as "Date"): Chart1.DataSourceSettings.Fields.Add( New FieldMap("DateTime", FieldUsage.RowHeading))But I would actually discourage you from naming one of the properties of your class as DateTime, since it is the same name as the type. MyDateTime maybe?
  2. Hello miketesch, Unfortunately it is not possible to have the pie labels overlap other slices. Your only options would be to either draw outside the slice or make the font size scale to the size of the slice. Regards,
  3. Rendering as SVG is an option in Chart FX for Java Server, but not an option for exporting in Chart FX for Java Desktop. There is no way of exporting the chart as vectors. Out of relying on software that converts bitmaps into vector images (which I would not necessarily recommend), I am not sure how you would be able to accomplish this.
  4. Hello JanU, Exporting to Bitmap will get you an image of the chart. Exporting to XML will give you an XML file containing the data in XML format (not a chart). Unfortunately exporting to EPS is not supported by Chart FX.
  5. If you are trying to move a Chart FX license from one server to another, but the old server is no longer active, please contact our security department: security [at] softwarefx.com.
  6. Yes, you can use ToOADate. http://msdn.microsoft.com/en-us/library/system.datetime.tooadate.aspx
  7. Have you looked at axis sections? http://support.softwarefx.com/Chart_FX_7/article/2501002#5a0e7788-1f34-e211-84a5-0019b9e6b500
  8. To change the DPI of the chart you would need to create a Graphics object from a high resolution Bitmap and then use the Paint method to paint the chart to the Graphics. Here is the code you are looking for (for 300 DPI, for example). Rectangle r = new Rectangle (0, 0, (chart1.Width * 300) / 96, (chart1.Height * 300) / 96); Bitmap bmp = new Bitmap (r.Width, r.Height); bmp.SetResolution(300, 300); Graphics g = Graphics .FromImage(bmp); chart1.Paint(g, r, PaintStyles .Background | PaintStyles .Border | PaintStyles .Print); bmp.Save( @"c:\temp\cfxdpi.bmp" ); g.Dispose(); bmp.Dispose(); You can save the file in different formats: bmp.Save( @"c:\temp\cfx.jpg" , ImageFormat .Jpeg); bmp.Save( @"c:\temp\cfx.gif" , ImageFormat .Gif); bmp.Save( @"c:\temp\cfx.tif" , ImageFormat .Tiff); Then try printing the image file.
  9. You asked how to make the axis categorical, but it is categorical by default. To change the labels: chart1.AxisX.Labels[index] = "My Label";
  10. Have you taken a look at this KB article? http://support.softwarefx.com/Chart_FX_7/article/7621009
  11. All bar charts are categorical. You cannot assign X values to a bar chart.
  12. You have posted a Chart FX 7 question on the Chart FX 6.2 forums. What product are you using? If you are using Chart FX 6.2, this is not possible.
  13. int seriesIndex = 0; int pointIndex = 0; chart1.Points[seriesIndex, pointIndex].Color = Color.Red;
  14. What do you get if you plot lines instead of box plot for the same data (screenshot please)?
  15. What do you mean by unsuccessful? What do you get if you plot lines instead of box plot for the same data?
  16. Please make sure you have the following on your web.xml file: <filter> <filter-name>ChartCallbackFilter</filter-name> <filter-class>com.softwarefx.chartfx.server.servlets.ChartCallbackFilter</filter-class> </filter> <filter-mapping> <filter-name>ChartCallbackFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
  17. I believe that permissions change depending on what features of the chart you are using. It would be easier for you to just increase trust using the microsoft tool Caspol until you get to a level where it works. Also, try moving that site to trusted site and lowering the security on Internet Explorer (Tools/Internet Options/Security). Please note that Microsoft is raising this bar for a reason, and if you choose to keep using this technology you should do so at your own risk. Whenever possible we always recommend that you render the chart as an image and take advantage of the Ajax interactivity options.
  18. That message is just a generic message that shows when the .NET control cannot be loaded. Maybe you need to look into permissions and .NET Framework trust levels. Note that for security reasons Microsoft is making it harderd to work with .NET controls and ActiveX on browsers.
  19. <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% com.softwarefx.chartfx.server.ChartServer chart1 = new com.softwarefx.chartfx.server.ChartServer(pageContext, request, response); chart1.setID("chart1"); chart1.setWidth(600); chart1.setHeight(400); chart1.setAsFirstChart(); chart1.renderControl(); com.softwarefx.chartfx.server.ChartServer chart2 = new com.softwarefx.chartfx.server.ChartServer(pageContext, request, response); chart2.setID("chart2"); chart2.setWidth(600); chart2.setHeight(400); chart2.renderControl(); com.softwarefx.chartfx.server.ChartServer chart3 = new com.softwarefx.chartfx.server.ChartServer(pageContext, request, response); chart3.setID("chart3"); chart3.setWidth(600); chart3.setHeight(400); chart3.setAsLastChart(); chart3.renderControl(); %> </body> </html>
  20. Can you please try using the attached sample?
  21. Since I cannot reproduce the issue, I would recommend that you try with the latest version of the product. You can download it from www.mysoftwarefx.com
  22. To figure out the version of the jar you are using, please run: java -jar chartfx70.server.jar -version
  23. Hello Venkatesh, What version of the jars are you using?
  24. Hello Ark, It is possible to add buttons and groups (as demonstrated in the samples) but it is not possible to add your own custom control.
  25. Hi Skchai, Your image did not post, but I think I know what you are talking about. Try this: chart1.Data.Series = 3; chart1.Data.Points = 5; Random r = new Random(); for (int i = 0; i < chart1.Data.Series; i++) { for (int j = 0; j < chart1.Data.Points; j++) { chart1.Data[i, j] = r.Next(100); } } chart1.AllSeries.Border.UseForLines = true; chart1.AllSeries.Border.Effect = BorderEffect.None; for (int i = 0; i < chart1.Series.Count; i++) chart1.Series.Border.Color = chart1.Series.Color; chart1.AllSeries.MarkerSize = 10; chart1.Points[1, 2].Color = Color.Pink;
×
×
  • Create New...