Jump to content
Software FX Community


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by ExequielA

  1. Hello, Please find attached a NetBeans 7.3.1 sample project showing how to implement a multiple Y-axis chart in Chart FX 7 for Java Desktop. Note that this sample is only intended for demonstration purposes, as its main objective is to show a very basic implementation of the desired behavior. I am sure it could be improved in many ways according to your needs, but we certainly believe it can be used as a good starting point for achieving this requirement. I hope this helps. CFX7JD Multiple YAxis.zip
  2. Hello, In order to achieve the behavior you are looking for, please refer to the code below: [C#] chart1.AxisX.Inverted = true; Please note that the RightToLeft (RTL) property is a .NET feature which indicates whether control's elements are aligned to support localization using right-to-left fonts. It is not a Chart FX feature. I hope this helps.
  3. Hello, In order to achieve the behavior you are looking for, you need to pass a VARIANT object as the second parameter of the Export method. Please refer to the code below: [C++] VARIANT v; V_VT(&v) = VT_EMPTY; m_chartPtr->Export(Cfx62::FileFormat_Metafile,v); I hope this helps.
  4. Hello yjchris.jung: Please note that Chart FX can only add the license information to executable assemblies. If you are wrapping the chart control, please note that the license will not be automatically embedded in your own class library (dll) and an error message ("Could not get Run Time License") will be displayed when trying to deploy to a machine without a Chart FX installation. Please take a look at the following article, which explains the available options for this scenario: http://support.softwarefx.com/Chart_FX_7/article/1501127 I hope this helps.
  5. Hello Ahmed, In order to add the AxisX scrollbar, you have to enable the zoom. Please refer to the following sample code that shows how to set the zoom for the three first points of 20 points: //Set initial view from point 1 to 3 chart1.AxisX.Zoom(1, 3); //Activate the initial zoom chart1.UpdateSizeNow(); I hope this helps,
  6. Hello, To export a chart as a JPEG, please refer to the code below: Chart1.Export(ChartFX.WebForms.FileFormat.Jpeg, "D:\\Image.jpg"); I hope this helps.
  7. Hello, In order the change the font size of the point labels, please refer to the code below: chart1.AllSeries.PointLabels.Font = new System.Drawing.Font("Microsoft Sans Serif", 14); chart1.AllSeries.PointLabels.Visible = true; I hope this helps.
  8. Hello Marshall, Please note that you can add additional category axes to improve the chart
  9. Hello, In order to add a custom gridline to a particular date, please refer to the code below: CustomGridLine custom = new CustomGridLine(); custom.Value = Convert.ToDateTime("2013-06-04").ToOADate(); custom.Width = 2; custom.Color = Color.Black; chart1.AxisX.CustomGridLines.Add(custom); The code above will add a custom gridline to June 04, 2013. I hope this helps.
  10. Hello, In order to achieve the behavior you are looking for, please comment out the following line: _marqueurDateDebutCourbeCopiee.ExtraStyle = CustomGridLineStyles.BackOnly
  11. Hi Ruby, In order to achieve the behavior you are looking for, you can use the SerLegBox property. For example, if you want to show the first 2 series, please take a look at the code below: chart1.SerLegBox = true; chart1.Series[0].Legend = "Series 1"; chart1.Series[1].Legend = "Series 2"; I hope this helps.
  12. Hi, Please take a look at the following code to export the chart to the clipboard: As Metafile: chart1.Export(FileFormat.Metafile); As Bitmap: chart1.Export(FileFormat.Bitmap); As Stream: MemoryStream ms = new MemoryStream(); chart1.Export(FileFormat.Metafile, ms); ms.Seek(0, SeekOrigin.Begin); Bitmap bmp = new Bitmap(ms,true); Clipboard.SetImage((Image)bmp); I hope this helps.
  13. Hi, You can insert a newline (\n) character to wrap long text in the title. Take a look at the following sample: TitleDockable t = new TitleDockable (); t.Text = "This title is very very long for the chart control \n This is a bar chart control" ; chart1.Titles.Add(t); I hope it helps.
  14. Hi, You can change the text of the menu item by setting the following property: Chart1.ToolBar.Commands[CommandId.ExportBitmap].Text = "My text"; I hope this helps.
  15. Hi, I am afraid this behavior is not supported by Chart FX, as there is no built-in feature to rotate the title. However, if you set the title on the secondary Y-Axis, the title will be displayed from top to bottom. chart1.AxisY.Position = AxisPosition.Far; Remember that you can align the title as well. Take a look at the following code: chart1.AxisY.Title.Alignment = StringAlignment.Far; chart1.AxisY.Title.Alignment = StringAlignment.Near; I hope this helps.
  16. Hi Peter, This is a very strange behavior. I performed several tests and I was unable to reproduce this issue on my side. Could you please post a small sample project that reproduces the problem?
  • Create New...