Jump to content
Software FX Community

Smartie

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Smartie

  1. I've had this error with certain gallery types when the image size specified is too small for the chart.

    I still have the support ticket open, they've not gotten back to me after saying they could re-create the error.


    [ArgumentException:
    Parameter is not valid.]


    System.Drawing.Graphics.CheckErrorStatus(Int32 status) +1503977


    System.Drawing.Graphics.FillPie(Brush brush, Single x, Single y, Single
    width, Single height, Single startAngle, Single sweepAngle) +282


    System.Drawing.Graphics.FillPie(Brush brush, Rectangle rect, Single
    startAngle, Single sweepAngle) +135


    ChartFX.WebForms.Internal.GraphicsEx.FillPie(Brush brush, Rectangle r, Double
    dStartAngle, Double dSweepAngle) +219


    ChartFX.WebForms.d.a(Brush A_0, Rectangle A_1, Double A_2, Double A_3) +64


    ChartFX.WebForms.Galleries.Radar.a(PaintMarkBase A_0, Int32 A_1, Int32 A_2,
    Int32 A_3, Int32 A_4, Rectangle A_5, Double A_6) +5321


    ChartFX.WebForms.Galleries.Radar.a(Int32 A_0, PaintMarkBase A_1, Int32&
    A_2, Int32& A_3) +4451


    ChartFX.WebForms.v.a(Int32& A_0, Int32& A_1) +54


    ChartFX.WebForms.v.u() +1438


    ChartFX.WebForms.v.a(IFrame A_0, Int32& A_1) +953


    ChartFX.WebForms.Chart.a(PaintBar A_0, IGraphicsEx A_1) +715


    ChartFX.WebForms.Chart.a(PaintBar A_0, IGraphicsEx A_1, Rectangle& A_2)
    +118


    ChartFX.WebForms.Chart.a(IGraphicsEx A_0, Rectangle A_1, Boolean A_2) +211


    ChartFX.WebForms.Chart.a(Stream A_0, IOutputWriter A_1, OutputText A_2,
    OutputText A_3, OutputInfo A_4) +455


    ChartFX.WebForms.Chart.a(OutputText A_0, OutputText A_1, Boolean A_2, String
    A_3, String A_4) +772


    ChartFX.WebForms.Chart.Render(HtmlTextWriter writer) +88


    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
    ICollection children) +240


    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
    +13


    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42


    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
    ICollection children) +240


    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
    +13


    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42


    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
    ICollection children) +240


    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
    ICollection children) +240


    System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
    +253


    System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87


    System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53


    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
    ICollection children) +240


    System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
    +42


    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
    ICollection children) +240


    System.Web.UI.Page.Render(HtmlTextWriter writer) +38


    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
    ControlAdapter adapter) +11026875


    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint) +4240

































     

  2. Hey,

    I'm having trouble setting the colours of "series" on a pie chart.

    I currently have a bar chart which I simply loop through the series, if a series name matches a certain value I set the series colour manually.

    I would like to do the same when the users chooses to output the chart as pie instead of bar. 

    It still runs that code, and sets the series colours but it has no effect on the output of the chart as the pie chart "series" are not the same.

    So I though I would try looping through the points on my chart, assuming they were the new "series" but it says I have no points. Chart.Point.Count is 0.

    Please advise me how to loop through and change the colour of the "series" on a pie chart.

    Thank you.

  3. Hey,

    I have an chart with several series, the chart is set to stack to 100%.

    Is it possible to get the point lables to display the % that series plot takes up of the full 100% instead of the value?

    Thanks

    Leah

  4. Hey juan,

    Thanks for the reply.

    I have tried what you said but I am finding the points text property is nothing. So I am unable to check it to see what colour that point should be.

    Any ideas?

    Thanks

    For lIndex As Integer = 0 To pChart.Data.Points

      Select Case pChart.Points(lIndex).Text

      Case "Always"
      pChart.Points(lIndex).Color = Drawing.Color.Blue
      Case "Mostly"
      pChart.Points(lIndex).Color = Drawing.Color.Green
      Case "Sometimes"
      pChart.Points(lIndex).Color = Drawing.Color.Orange
      Case "Never"
      pChart.Points(lIndex).Color = Drawing.Color.Red

      Case "Not satisfied"
      pChart.Points(lIndex).Color = Drawing.Color.Red
      Case "Average"
      pChart.Points(lIndex).Color = Drawing.Color.Orange
      Case "Good"
      pChart.Points(lIndex).Color = Drawing.Color.LightGreen
      Case "Very Good"
      pChart.Points(lIndex).Color = Drawing.Color.DarkGreen
      Case "Excellent"
      pChart.Points(lIndex).Color = Drawing.Color.Blue

      End Select

      Next

  5. Hey,

    We do have an option for the user to output the chart as auto (.net control if applicable) or image, but they love how they can resize it when its the .net control. Additionally the properties option is grayed out on the image version.

    Is there a nice document I can point people towards about the rescritions of each mode and how to resolve them?

    Regards

    Leah

  6. Hey,

    This is going to be a real issue for us, alot of our customers are councils etc and even getting them to add us to the trusted sites was an effort. Getting their IT to run that command on all their pc's is certainly not going to happen.

    Not sure what to do now :S

  7. Hey,

    I am getting two problems with IE and my chart.

    If I right click on my chart and select properties, the properties window opens and has a warning message in a tooltip in the top left corner with the message:

    Microsoft .NET Security Warning

    Never enter personal information or passwords into a windoe unless you can verify and trust the source of the request.

    I am also getting this error when selecting to copy the chart to bmp:

    ---------------------------

    Error

    ---------------------------

    The application does not have enough permissions to execute this operation.

    ---------------------------

    OK

    ---------------------------

    I have added the site to trused sites but this does not help.

    Any ideas?

    Why do these forums not replace line breaks with brs, I had to add tags to the end of all my lines.... -.-

  8. Thanks for the reply, shame the new version has less functionality. :(


    I am adding the conditional attributes in the new version as follows:


    pChart.ConditionalAttributes.Add(New ChartFX.WebForms.ConditionalAttributes(pReport.Range1From, pReport.Range1To, Drawing.ColorTranslator.FromHtml(pReport.Range1Colour)))


    These are not showing up in the legend automatically, nor am I able to name them.


    How would I do this?


    Also regarding the stipes on the backgrounds... I am adding them like this:


    pChart.AxisY.Sections.Add(New ChartFX.WebForms.AxisSection(pReport.Range1From, pReport.Range1To, Drawing.ColorTranslator.FromHtml(pReport.Range1Colour)))


    How do I add them to the legend also?

  9. Heya,


    I am currently converting some charts from Chart FX Internet 6.2 to a Chart FX 7.



    CHART 1

    --------------------------


    This chart has one series and the bars are coloured depending on their value. Here is the code for the 6.2 version:


    Dim ConditionAbove

    Set ConditionAbove = Chart.ConditionalAttributes(0)

    ConditionAbove.Color = RGB(HexToRGB(Request.Form("GraphRange1Colour"),"R"),HexToRGB(Request.Form("GraphRange1Colour"),"G"),HexToRGB(Request.Form("GraphRange1Colour"),"B"))

    ConditionAbove.Condition.From = Request.Form("GraphRange1From")

    ConditionAbove.Condition.To = Request.Form("GraphRange1To")

    ConditionAbove.Legend = "Above Target"

    ConditionAbove.MarkerSize = 5


    The above code would also populate the user legend box. So I used to hide the series legend box and show the user legend box. All was well and happy.


    In Chart FX 7 I have been un-able to find any reference to a user legend box or been able to set up something similar.



    CHART 2

    --------------------------


    This chart has mulitple series and has a coloured background. Here is the Chart FX 6.2 code for the background colouring:


    Dim StripeAbove

    Set StripeAbove = Chart.Stripes(0)

    StripeAbove.From = Request.Form("GraphRange1From")

    StripeAbove.To = Request.Form("GraphRange1To")

    StripeAbove.Color = RGB(HexToRGB(Request.Form("GraphRange1Colour"),"R"),HexToRGB(Request.Form("GraphRange1Colour"),"G"),HexToRGB(Request.Form("GraphRange1Colour"),"B"))

    StripeAbove.Axis = AxisItem_Y


    Chart.UserLegendBoxObj.Item(0).Label = "Above Target"

    Chart.UserLegendBoxObj.Item(0).Color = RGB(HexToRGB(Request.Form("GraphRange1Colour"),"R"),HexToRGB(Request.Form("GraphRange1Colour"),"G"),HexToRGB(Request.Form("GraphRange1Colour"),"B"))


    As you can see it adds the stripe and then adds it in the user legend box. This chart display two legends, one at the bottom for the series' and one to the right for the background ranges. Once again I cannot find the user legend.


    ---------------------


    Has it been renamed to something strange, or hidden inside another object within the chart.


    Any help is greatly welcomed.


    Really not impressed that I had to edit my post and add br tags to the end of each line -.-

  10. Hey,

    One of our users is getting a Missing Licence Tag error when they try and access our charts.

    None of our other users are having this problem so its not a problem with our installation.

    They have removed the chart fx plugin and re-installed it again but are still getting the same issue.

    Does anyone have any idea what could cause this?

    Maybe they have a firewall filter on file extension preventing the chart fx pluging from downloading the nescessary files.. but does anyone know what files the plugin downloads when requesting a chart? I have asked the user to check if they do have any restrictions.

    Any help is appreciated.

×
×
  • Create New...