Jump to content
Software FX Community

rogelioB

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by rogelioB

  1. Hi, Try this code: chart1.Data.Series = 3; chart1.Data.Points = 10; chart1.Gallery = ChartFX.WinForms.Gallery.Bar; Random ran = new Random(); for (int i = 0; i < chart1.Data.Series; i++) { for (int j = 0; j < chart1.Data.Points; j++) { chart1.Data[i, j] = ran.NextDouble() * 100; } } chart1.Series[0].Stacked = true; chart1.Series[1].Stacked = true; chart1.Series[2].Gallery = ChartFX.WinForms.Gallery.Lines; Please let me know if this works. Regards, RB
  2. Hi, you just need to apply BringToFront method to the line graph. You can do it using this:chart1.Series[0].BringToFront(); Regards, RB
  3. rogelioB

    Histogram

    Hi, you can find a very complete a load of samples in our documentation, I highly recommend you to refer the
  4. rogelioB

    Clear Chart

    Hi, Please try using following line of code: ScanChart.Data.Clear(); Regards, RB
  5. Hi, Exporting a chart in to Microsoft Word, Excel, Powerpoint or PDF is not a supported feature of our product. What you can do, is use the chart export method, export your chart as an image and then simply place this image into your Microsoft Excel Spreadsheet, MS Word document, Powerpoint or PDF file. Regards RB
  6. Hi, Here is a sample of xml template that should do the job, so please try it and let us know. <CFX7> <PANES> <ITEM index="0"> <AXES> <ITEM index="0"></ITEM> <ITEM index="1"></ITEM> </AXES> </ITEM> </PANES> <AXESX> <ITEM index="0"></ITEM> </AXESX> <ALLSERIES> <GALLERYARRAY type="ChartFX.WebForms.Internal.IGalleryType[]"> <ITEM index="0" type="ChartFX.WebForms.Galleries.Line"></ITEM> </GALLERYARRAY> </ALLSERIES> <SERIES> <ITEM index="0"></ITEM> <ITEM index="1"></ITEM> <ITEM index="2"></ITEM> </SERIES> <TITLES> <ITEM> <TEXT>Dave's Test XML Chart</TEXT> </ITEM> </TITLES> <LEGENDBOX> <DOCK>Left</DOCK> </LEGENDBOX> <DATAGRID> <VISIBLE>True</VISIBLE> </DATAGRID> <BORDER assembly="ChartFX.WebForms.Adornments, Version=7.0.1500.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce" type="ChartFX.WebForms.Adornments.ImageBorder"></BORDER> <BACKGROUND assembly="ChartFX.WebForms.Adornments, Version=7.0.1500.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce" type="ChartFX.WebForms.Adornments.GradientBackground"> <COLORS assembly="ChartFX.WebForms.Adornments, Version=7.0.1500.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce" type="ChartFX.WebForms.Adornments.GradientBackground+ColorCollection"></COLORS> </BACKGROUND> <ID>4908</ID> <RENDERFORMAT>Image</RENDERFORMAT></CFX7> Regards, RB
  7. Following is a sample showing how to accomplish what you want. It loads Y (values) and X (date time) data and then it sets the format of the X-Axis to show minutes and seconds.Additionally, are the differences between Date/Time Axis Formats: - AxisFormat.Time = shows time labels.- AxisFormat.Date = shows date labels.- AxisFormat.DateTime = shows both date and time labelsprivate void DateAxisX_Load(object sender, EventArgs e) { chart1.Data.Series = 3; chart1.Data.Points = 5; Random ran = new Random(); DateTime mydate = DateTime.Now; //Loads Chart FX data for (int j = 0; j < chart1.Data.Points; j++) { for (int i = 0; i < chart1.Data.Series; i++) { chart1.Data.Y[i, j] = ran.NextDouble() * 100; chart1.Data.X[i, j] = mydate.ToOADate(); } mydate = mydate.AddMinutes(ran.Next(7, 23)); } chart1.LegendBox.Visible = false; chart1.AxisX.AutoScroll = true; chart1.AxisX.PixelsPerUnit = 1000; //Axis Labels format chart1.AxisX.LabelsFormat.Format = AxisFormat.Time; chart1.AxisX.LabelsFormat.CustomFormat = "hh:mm tt"; chart1.AxisX.Step = 1 / 60; } Regards RB
  8. If you do not set the step, Chart FX will calculate it according to your data; if you want to have a specific steps and labels like %, I recommend you to set a step. WPFchartTest1.zip
  9. ChartFX70 has already a temp folder, so for the initial configuration and in order to make charts appears, please try first without modifying the config file. In Chart FX 7, different to 6.5, there are others steps to follow in order to configure an application, so I strongly recommend you to use a simple project, deploy it make sure it is running and then you can continue customizing your environment.
  10. Hi, It seems you trying to do a percentage Y-Axis, so please use the following lines of code in order to accomplish this behavior: chart1.AxisY.ScaleUnit = 100; chart1.AxisY.LabelsFormat.Decimals = 1; chart1.AxisY.Step = 10; chart1.AxisY.LabelsFormat.CustomFormat = "00.0%"; Regards RB
  11. HiHere are some steps you should follow to set up your WebApp.In your WebContent folder:1. Copy/paste
  12. Hi,When you install any of our products you will get a complete guide (it comes with two sections: developer
  13. Please try using following code in order to set the Y-Axis as Date format:chart1.AxisY.DataFormat.Format = ChartFX.WinForms.AxisFormat.Date;chart1.AxisY.LabelsFormat.Format = ChartFX.WinForms.AxisFormat.Date;Regards RB
  14. You need to add a style to the Axis Y in order to show the last label, please use the code below:Set<AxisStyles> s = chart1.getAxisY().getStyle(); s.add(AxisStyles.SHOW_ENDS); chart1.getAxisY().setStyle((EnumSet<AxisStyles>) s);Regards RB
  15. Hi When the size labels are too long, you can adjust the margin of the plot area, avoiding truncation. Use following code: chart1.PlotAreaMargin.Left = 200; RB
×
×
  • Create New...