Jump to content
Software FX Community

rogelioB

Members
  • Posts

    15
  • Joined

  • Last visited

Posts 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,

     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

  3.  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

  4. 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.

     

  5. 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

  6.  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

×
×
  • Create New...