Jump to content
Software FX Community

juanZ

Members
  • Posts

    141
  • Joined

  • Last visited

Everything posted by juanZ

  1. HiYou can achieve this with the following approach: 1) Get Chart stream (MyStream) using the chart export method. MemoryStream MyStream = new MemoryStream(); MyChart.Export(FileFormat.Jpeg, MyStream); 2) Convert the stream to a base 64 string: MyStream.Position = 0; StreamReader reader = new StreamReader(MyStream); string strBase64 = Convert.ToBase64String(MyStream.ToArray());3) Now you can export this base64 string as the output of your webservice endopint. You can in your excel or any other software, get this base64 str back again into a picture file.
  2. Hi Sam, This has been taken via support department in order to verify this. This will be tested regarding the latest Chart FX 7 dlls (7.0.3656.30235) that are available for download at: http://support.softwarefx.com/ShowInteractive.aspx?Product=CfxNet70&option=0
  3. Hi, For custom elements in the chart canvas you can use annotation objects (an Image or a Rectangle object for this). Annotation Rectangle sample: http://support.softwarefx.com/OnlineDoc/CfxJava65//samples/Annotations.AnnotationRectangle.htm Annotation Image sample:http://support.softwarefx.com/OnlineDoc/CfxJava65//samples/Annotations.AnnotationPicture.htm Then on the Legend, you should use the UserLegendBox Item foe creating custom legend box entries. http://support.softwarefx.com/OnlineDoc/CfxJava65//guide/userlegend.htm http://support.softwarefx.com/OnlineDoc/CfxJava65//samples/Legends.UserLegendBox.UserLegendBox.htm You cannot set the same image on legend box, but you can choose a marker shape that emulates the same object (example: rectangle marker shape with the same gray color) Hope this helps.
  4. Hi, Chart FX 7 is compiled in Any CPU. if you want to test this, open your visual studio console and type something like this: > CORFLAGS ChartFX.WebForms.Base.dll And this will ourput Version v2.0.50727 CLR Header 2.5 PE: 32 CorFlags: 9 IONLY: 1 32BIT: 0 (Look, if 32BIT == 1 then it is 32bit target, if 32BIT == 0, then is Any CPU) Signed: 1 Hope this helps.
  5. Can you please post the code you are using to attach your dataset to chart datasource?
  6. Hi, Try to set the format to the axis labels now. Like this: chart1.AxisX.LabelsFormat.Format = AxisFormat.Date; (only Date and no DateTime)
  7. Before assgning the data, please set this property. chart1.AxisY.DataFormat.Decimals = 2; Let me know about your findings.
  8. Hi Nick However Chart FX 7 is 32-64 Bit compatible since it was build using .Net Framework. If you want to try the full product trial for 30 days, you can download it at: http://www.softwarefx.com/sfxtrial/Trial_downloads.aspx?ProductID=CfxNet70 Please let us know if you need further assistance.
  9. Hi, regarding your questions, well first the DataFormat.Format property sets the format, but it will not change datasource information. The Format is like a mask for the data showed however if you want to retrieve the values, you will get the whole value. Then, Chart FX 7 component is a X/Y based chart that will plot numerical values across two axis: the X and the Y one. The X can be labels (strings - categorical), numbers or dates (numerical), and the Y axis is defined by the type of data defined for the Chart. The chart at the end, is a graphical representation of numbers, so only numbers are accepted as data for each series. I saw you posted some code, that is incomplete... maybe you want to re post it again so I can give it a check. Juan Z.
  10. Ok, thats works too. So, if you have any other questions, we are more than glad to help.
  11. Hi Simon, you can try something like this chart1.Gallery = Gallery.Lines; int[] series1 = { 12, 15, 10 }; int[] series2 = { 20, 25, 7, 12, 5, 15, 3 }; string[] labels = { "1", "2", "3","4","5", "6","7"}; object[] allArrays = new object[3]; //Load Array of Arrays allArrays[0] = series1; allArrays[1] = series2; allArrays[2] = labels; ListProvider lstProvider = new ListProvider(allArrays); chart1.DataSourceSettings.DataSource = lstProvider; Let me know if this helped.
  12. Hi Sam, This is what is happening: the chart type is Gantt, so the Axis Y change position with Axis X in order to move the bars horizontally. This means the the zero position of X axis belongs to the first bar. If you want to put for example a custom gridline to zero position on Axis X, this will put it on top of the bar. So custom gridlines will not solve the issue. Then, In Chart FX 7, you cannot draw lines if there is no axis showed on the chart. So in your case, you need that the X axis is not showed, so no lines could be draw. What i think that might help you is to use an annotation object, but this is a work around. Yo have to calculate the px coordinates of the position Y axis in order to draw and annotation line there. I apologize for the inconvenient since this is a chart limitation.
  13. Hi, You should try to use annot.getToolBar().setVisible(true); instead of annots.getToolBar(); only. However Im checking right now this because I think there is an issue related. I will be osting more information soon. Sorry for the delay.
  14. Hi, you can try this code. This code moves custom grid lines to a position in the chart in which the user has raised the click event: [On Code Behind] protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Chart1.Gallery = Gallery.Curve; CustomGridLine custom1 = new CustomGridLine(); custom1.Value = 3; custom1.Color = Color.DarkBlue; custom1.Text = "Limit 1"; custom1.Width = 2; Chart1.AxisX.CustomGridLines.Add(custom1); CustomGridLine custom2 = new CustomGridLine(); custom2.Value = 25; custom2.Color = Color.Black; custom2.Style = System.Drawing.Drawing2D.DashStyle.Dash; custom2.Text = "Alarm Limit 1"; custom2.TextColor = Color.DarkRed; Chart1.AxisY.CustomGridLines.Add(custom2); } } [ON ASPX] <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <script language="javascript" type="text/javascript"> function PaintGridLines(x,y) { var chrfx = document.getElementById("Chart1"); chrfx.AxisX.CustomGridLines.Item(0).Value = x; chrfx.AxisY.CustomGridLines.Item(0).Value = y; } </script> <script lang="JavaScript" for="Chart1" event="MouseClick(obj, args)"> PaintGridLines(Chart1.AxisX.PixelToValue(args.X),Chart1.AxisY.PixelToValue(args.Y)); </script> <body> <form id="form1" runat="server"> <div> <chartfx7:Chart ID="Chart1" runat="server" RenderFormat=".Net"> </chartfx7:Chart> </div> </form> </body> </html> Hope this helps.
  15. Hi Sam, The only way you can make the line on the bottom to be plotted is by showing up the Y Axis. If there is no Y Axis, the chart will not plot the axis X line.
  16. Hi, Chart FX does have the capability to mix serveral gallery types into one chart. Here is a page from the online resource center that shows some combination: http://support.softwarefx.com/OnlineDoc/CfxJava70//guide/combination.htm Then, if you are using Java Desktop Pure Swing application, you should get the Chart FX for Java Desktop or in case you are developing web pages you should get Chart FX 7 for Java Server. The Developer Studio 7 Suite contains all Java and .Net products in the same package. So, if you want to try our products, you can download them (30 Day Full Product Trial) at: http://www.softwarefx.com/SfxTrial/Trial_downloads.aspx If you have specific pricing questions, please contact our sales department at [sales at softwarefx.com]. They will be more than glad to help you for any pricing and licensing question. If you need further assistance, please let me know.
  17. Hi, I have been notified that the Mac Installer has been fixed. You can now download it from our trial page at: http://www.softwarefx.com/SfxTrial/Trial_downloads.aspx
  18. Hi, Our product managers are fixing the installer so it can contain the proper references. Did you changed the client for desktop on your samples? does that helped? Once the installer is up to date, I will be notifying.
  19. Hi, I think that's not possible since there is no API for the power gadgets to allow that kind of customizations. for support.zip
  20. Ok, On Chart FX 7, annotations comes as part of the com.softwarefx.chartfx.server namespace included in the ChartFX70.Server.jar file. In the Chart FX 7 samples you can find more samples like this one. Please look at this code sample: <%@page import="com.softwarefx.chartfx.server.*"%><%-- Document : polygon Created on : Mar 19, 2008, 12:00:20 PM Author : Administrator--%><%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Annotation: Polygon</title> </head> <body> <% ChartServer chart1 = new ChartServer(application,request,response);chart1.importChart(FileFormat.XML, application.getRealPath("/") + "/data/samples.cfx");com.softwarefx.chartfx.server.annotation.Annotations annot = new com.softwarefx.chartfx.server.annotation.Annotations(); chart1.getExtensions().add(annot); com.softwarefx.chartfx.server.annotation.AnnotationPolygon poly = new com.softwarefx.chartfx.server.annotation.AnnotationPolygon(); annot.getList().add(poly); java.awt.Point[] p = new java.awt.Point[4]; p[0] = new java.awt.Point(250,50); p[1] = new java.awt.Point(320,150); p[2] = new java.awt.Point(300,250); p[3] = new java.awt.Point(200,100); poly.setColor(java.awt.Color.red);poly.setVertices(p);poly.setClosed(true); chart1.setWidth(600); chart1.setHeight(400); chart1.renderControl(); %> </body></html>
  21. Annotation should be available within the chartfx.annotation.jar You can find this jar a the Web-INF/Lib folder at your samples. For code snippets, please refer to this links: http://support.softwarefx.com/OnlineDoc/CfxJava65// http://support.softwarefx.com/OnlineDoc/CfxJava65//guide/includingannotationextension.htm You can also check the samples that came with the Chart FX. If you need further assistance, please let me know.
  22. I see. hmmm well I don't know a workaround for this. Even if you use an image annotation, this one will be on top of the series.
  23. Hi, I made a test with this code. Let me know if it helped. private void button1_Click(object sender, EventArgs e) { this.chart1.View3D.Enabled = true; ChartFX.WinForms.Adornments.ImageBackground imageBackground1 = new ChartFX.WinForms.Adornments.ImageBackground(); imageBackground1.Image = Bitmap.FromFile(@"C:\YourSamplePicture.jpg"); this.chart1.Background = imageBackground1; }
  24. Hi, I'm going to check the installer. Meanwhile, please change the namespace as mentioned before.
  25. Hi, if there is no Y axis ploted on the chart, you cannot put a line on the base. I tried to imitate the chart proposed. Please check the code snippet below. Copy this in the load method of your application. Let me know if this works for you. chart1.Gallery = Gallery.Gantt; chart1.Data.Series = 2; chart1.Data.Points = 3; chart1.Data[0, 0] = 10; chart1.Data[0, 1] = 20; chart1.Data[0, 2] = 30; chart1.Data[1, 0] = -10; chart1.Data[1, 1] = -20; chart1.Data[1, 2] = -30; chart1.LegendBox.Visible = false; chart1.AllSeries.PointLabels.Visible = true; chart1.AxesStyle = AxesStyle.None; CustomGridLine cg = new CustomGridLine(0,string.Empty); cg.Color = Color.Gray; cg.Width = 1; chart1.AxisY.CustomGridLines.Add(cg); chart1.AxisY.Step = 5; chart1.AxisY.Grids.Major.Visible = false; chart1.AxisY.Grids.Minor.Visible = false; chart1.AxisX.Grids.Major.Visible = false; chart1.AxisX.Grids.Minor.Visible = true; Pane pane = new Pane(); chart1.Panes.Add(pane); pane.Separation = 0; chart1.Series[1].Pane = pane; pane.AxisY.Grids.Major.Visible = false; pane.AxisY.Grids.Minor.Visible = false; pane.AxisY.Step = 5; chart1.AxisX.Style |= AxisStyles.HideText; chart1.AxisY.Line.Style = System.Drawing.Drawing2D.DashStyle.Solid; chart1.AxisY.Line.Width = 2; chart1.AxisY.Line.Color = Color.Gray;
×
×
  • Create New...