Jump to content
Software FX Community

CarlosAC

Members
  • Posts

    204
  • Joined

  • Last visited

Posts posted by CarlosAC

  1. Hi jch111


     


    Instead of changing the Legend Box Items position, please try following code:


     


    List<SeriesAttributes>
    allSeries = new List<SeriesAttributes>();


     


    //Adds all series (in current order) to the auxiliar Collection


    foreach (SeriesAttributes
    series in chart1.Series)


    {


     
    allSeries.Add(series);


    }


     


    //Iterate from all series and invert the current order


    foreach (SeriesAttributes
    series in allSeries)


    {


     
    series.BringToFront();


    }


     


    I hope it
    helps.


     


    -- Pipon

    post-7134-13922412916222_thumb.gif

  2. Hi Cecilia Daniels

     

    I found a workaround for your issue.  It will only work if the latest series is the one with Lines gallery type.

     

     

    List<SeriesAttributes> allSeries = new List<SeriesAttributes>();<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

    //Adds all series (in current order) to the auxiliar Collection

    foreach (SeriesAttributes series in chart1.Series)

    {

      allSeries.Add(series);

    }

     

    //Iterate from all series and invert the current order

    foreach (SeriesAttributes series in allSeries)

    {

        series.BringToFront();

    }

     

    I hope it helps.

     

    -- Pipon

     

  3. Hi thealere

     

    Yes, Chart FX support the floating bars as the ones in the image. You need to use following code:

     

    chart1.openData(COD.VALUES, series, points);

    chart1.openData(COD.INI_VALUES, series, points);

     

    // Add as many as you want

    chart1.getIniValue().setItem(series, point, value);

    chart1.getValue().setItem(series, point, value);

     

    chart1.closeData(COD.INI_VALUES);

    chart1.closeData(COD.VALUES);

     

    -- Pipon

  4. Hi DustinW

     

     

    Chart FX will add the Axis Sections text automatically to the legend box.  I have found a way to remove them, please check following code.

     

     

    LegendItemAttributes lia = new LegendItemAttributes();

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

    chart1.LegendBox.ItemAttributes[chart1.AxisX.Sections] = lia;

    lia.Visible = false;

     

     

    -- Pipon

  5. Hi ricardoarguellojr

     

    When you see 2 pies in the same chart is because the data source contains 2 series of data.  Unfortunately, you cannot have combine gallery type such as bars and pies in the same chart.   For instance, you can combine Lines, Bars and Areas.  Also, you can combine Pies and Doughnuts.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

    Now, regarding your question about different data, Chart FX engine does not allow you to use more than one data source.  So, unfortunately, you are not able to use different data as Chart FX data source.

     

    -- Pipon

  6. Hi fxinq1009

    You can increase separation of bar modifying the volume of each point.  Please check following code:

    chart1.Point.Volume = 50;

    Unfortunately, you cannot separate bars for a single x-value.  All they will be side by side always.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

     

    -- Pipon

  7. Hi sheng

     

    This is an unsupported feature in Chart FX, you cannot get directly the OHLC values in order to set them in the Tooltip.  But, from spoken with a Chart FX developer, he was able to come up with a work around for you. It involves changing the Text property of every point in the chart and set the tooltip to %L right before the chart gets painted (I was only able to make it work at the PrePaint event).

     

    private void chart1_PrePaint(object sender, ChartFX.WinForms.CustomPaintEventArgs e)

    {

      if (string.IsNullOrEmpty(chart1.ToolTipFormat))

      {

      for (int i = 0; i < chart1.Data.Points; i++)

      {

    chart1.Points.Text = DateTime.FromOADate(chart1.Data.X).ToString().Split(' ')[0] +

    "\r\n" +

    "Open: " + chart1.Data[0, i].ToString() +

    "\r\n" +

    "High: " + chart1.Data[1, i].ToString() +

    "\r\n" +

    "Low: " + chart1.Data[2, i].ToString() +

    "\r\n" +

    "Close: " + chart1.Data[3, i].ToString();

      }

     

      chart1.ToolTipFormat = "%L";

      }

    }

     

    I must remind you that this is a workaround over an unsupported feature.

    Carlos

  8. Hi samiam1029

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

    Unfortunately, I think you cannot achieve calculating the size of the chart base on number of point.  You will need to play with many variables while calculating the width of the chart. For instance:

     

    Axis Labels, Chart FX engine will automatically calculate spacing it need to plot labels.

    Legend Box, depending of the position of the legend box, the plot area can decrease/increase.  Take into consideration the user can change the legend box position at run time.

     

    Good look.

     

    -- Pipon

  9. [font= 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-ansi-language: EN-US" lang=EN-US>[font=" 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-ansi-language: EN-US" lang=EN-US>Hi patelajk<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

    [/font] 

    The issue seems to be related with PSS service in your machine.  Please check in your IIS admin console to see if the Chart FX virtual directory is in the same level of your web site. If not, please create the Chart FX virtual directory at the same level.  This virtual directory should be linked to ChartFX70 under your installation folder.[/font]

    [/font] 

    [font= 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-ansi-language: EN-US" lang=EN-US>Also, while the PSS Service is not running, are you able to see the Charts?

     

    Software FX provide knowledge base articles related with PSS Service, please check following resources:

    http://support.softwarefx.com/kb/762/2/021.htm]http://support.softwarefx.com/kb/762/2/021.htm'>[/font]

    [font= 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-ansi-language: EN-US" lang=EN-US>

    http://support.softwarefx.com/kb/762/1/004.htm]http://support.softwarefx.com/kb/762/1/004.htm'>[/font]

    [font= 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-ansi-language: EN-US" lang=EN-US>

     Additionally, when you set the render format to .NET, you need to have installed .NET framework on the client machine. Also, you will need to set full trust on it. So, please try setting your framework configuration to full trust.

     

    -- Pipon [/font][/font]

  10. Hi Jonny

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

    This, seems to be a problem specific with the browser version and not with the chart control itself, however we would like to replicate the behavior to try to help you, for this we would need a simple sample project with your resizing .

     

    Does it work on IE 8?

    -- Pipon

×
×
  • Create New...