Jump to content
Software FX Community

CarlosAC

Members
  • Posts

    204
  • Joined

  • Last visited

Posts posted by CarlosAC

  1. Hi Inayath

    Unfortunately, this is a known issue when using Microsoft Ajax and rendering the chart as .NET format (or ActiveX or any embedded controls). The issue is on Microsoft side and we already reported the issue to them. I am not sure when the issue will get fixed since it depends on Microsoft.

    -- Pipon

     

  2. Hi fxinq1009

    I apologize since I copied code valid for Chart FX 7 and not for Chart FX 6.x for Java.  Unfortunately, Chart FX 6.x for Java does not have the Custom Grid Lines option.  From checking the API, I found a possible workaround.  Please check following code:

    AxisSection section1 = chart1.getAxisX().getSections().getItem(0);section1.setFrom(0);section1.setTo(0);section1.setFontStyle(java.awt.Font.BOLD|java.awt.Font.ITALIC);section1.setGridlines(true);section1.setTextColor(java.awt.Color.red);section1.setBackColor(new java.awt.Color(255,0,0,32));section1.getGrid().setColor(section1.getTextColor());section1.getGrid().setWidth(2);

    Please note that I am setting FROM and TO values with

  3. Hi russ_uk

    In the first method, you are adding point #0 to the series  0, 1 and 2; point #1 to series 3, 4 and 5; and finally, point #2 to series 4, 5  and 6.

    Now, in the second method, you are adding point # 0 to the series 0; point #1 to the series 1; and point # 2 to series 2.

    In both cases, you are not adding points to specific series, and those points are adding

    post-7223-13922412965782_thumb.png

  4. Hi russ_uk

    The chart contains 10 series and 3 points.  Can you please provide me with the method where you are adding the data to the chart, or maybe the data source (as a table).

    Please try the following code at your end:

    Random ran = new Random();

    Chart1.Data.Series = 1;

    Chart1.Data.Points = 100;

    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;

      }

    }

    -- Pipon

  5. Hi rsm2219

    First of all, 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.

    Then, try starting the PSS Service and make sure that the file version for the dlls in the bin folder of your Chart FX installation are all the same

    If the problem persist, please contact Software FX Support at support[at]softwarefx[dot]com.

    -- Pipon

     

  6. Hi Mick

    Unfortunately, you cannot assign 2 different series to the same legend item.  As a workaround, you can clear all default items and create your own new legend items.  Following the code showing how to clear and add new items.

    // Clear the default items.

    LegendItemAttributes lia = new LegendItemAttributes();

    lia = chart1.LegendBox.ItemAttributes[(ILegendItemGenerator)chart1.Series];

    lia.Visibility = Visibility.Hidden;

    // Add your custom legend item.

    CustomLegendItem myCustomItem1 = new CustomLegendItem();

    myCustomItem1.Content = "New Label 1";

    myCustomItem1.Marker.Shape = MarkerShape.Circle;

    myCustomItem1.Fill = new SolidColorBrush(Colors.LightSteelBlue);

    chart1.LegendBox.CustomItems.Add(myCustomItem1);

    -- Pipon

  7. Hi MasterMind

    You can customize the toolbar or contextMenu, adding items. Then you can code the action you want for each item. Following is a code sample showing how you can add a toolbar item.

    // Creates a new command with CommandId CommandCollection commands = chart1.Commands; Command command = new Command (1); command.Style = CommandStyles .TwoState; command.Text = "New Toolbar Entry" ; command.ImageIndex = 1;

    // Adds the new command to the commands collection chart1.Commands.Add(command);

    // Creates a new toolbar entry and inserts it after the specified position ToolBarItem tbItem = new ToolBarItem (); tbItem.CommandId = 1; chart1.ToolBar.Insert(0, tbItem);

    Following is a code sample how you can code the action for the toolbar item.

    private void chart1_UserCommand( object sender, CommandUIEventArgs e) {   if (e.CommandId == "Your Command ID" )   {   // Your code goes here...   } }

    -- Pipon

     

  8. Hi samiam1029

    Unfortunately, there is not a simple way you can hide the plot area of the chart.  This is a workaround, but it implies changing the data of the chart.  The following code you need:

    // clear the current data.chart1.Data.Clear();

    // manually add new Legend Box Items (when you clear the data, the legend box will be cleared as well)CustomLegendItem myCustomItem1 = new CustomLegendItem();myCustomItem1.Text = "New Label 1";myCustomItem1.MarkerShape = MarkerShape.Circle;myCustomItem1.Color = Color.LightSteelBlue;chart1.LegendBox.CustomItems.Add(myCustomItem1);

    // when Chart FX does not have data (after clear it), automatically a message will be plotted

  9. Hi Bahmer

    Software FX staff have made different tests in Reporting Services 2008 and unfortunately, Chart FX for Reporting Services is not compatible for Microsoft Reporting Services 2008 for the time being. I apologize for the inconveniences this may cause.

    -- Pipon

  10. Hi Murat and Bahmer

    Software FX staff have made different tests in Reporting Services 2008 and unfortunately, Chart FX for Reporting Services is not compatible for Microsoft Reporting Services 2008 for the time being. I apologize for the inconveniences this may cause

    -- Pipon

×
×
  • Create New...