Previous Next

Thread: Changing colors in chart based on some threshold values

Last post 03-21-2008 12:41 AM by qbernard. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 03-13-2008, 4:50 AM

    • kewlapps
    • Top 200 Contributor
    • Joined on 12-20-2007, 2:40 PM
    • Posts 17
    • kewlapps

    Changing colors in chart based on some threshold values

    Hi,

    I generate a response time chart every day using LP and VBscript and publish it to website. Since the max response time varies each day, it is sometimes confusing looking at shape of the chart, especially if you overlook the y-axis response time scale, which often happens with business users.

    My question is, is there any way that we can change the color, say to "red", instead of the default blue for all datapoints that exceed 8 sec?

    Thanks

  • 03-17-2008, 2:27 AM In reply to

    • qbernard
    • Top 10 Contributor
    • Joined on 03-26-2003, 2:12 AM
    • Malaysia
    • Posts 2,223
    • IIS MVPs
    • qbernard

    Re: Changing colors in chart based on some threshold values

    Arggh.. have not tested. but have you try format the output chart with config script? via the -config switch.

    script example from the help doc -
    // Add a caption
    chartSpace.HasChartSpaceTitle = true;
    chartSpace.ChartSpaceTitle.Caption = "Generated by Log Parser 2.2";
    chartSpace.ChartSpaceTitle.Font.Size = 6;
    chartSpace.ChartSpaceTitle.Position = chartSpace.Constants.chTitlePositionBottom;

    // Change the background color
    chart.PlotArea.Interior.Color = chartSpace.Constants.chColorNone;

    Cheers,
    Bernard Cheah
  • 03-19-2008, 9:04 AM In reply to

    • kewlapps
    • Top 200 Contributor
    • Joined on 12-20-2007, 2:40 PM
    • Posts 17
    • kewlapps

    Re: Changing colors in chart based on some threshold values

    Thanks Bernard for the tip but I am looking for more of cahing the colors of the data points that exceed certain value and not the background. Please let me know if this is possible.

    Thanks.

  • 03-21-2008, 12:41 AM In reply to

    • qbernard
    • Top 10 Contributor
    • Joined on 03-26-2003, 2:12 AM
    • Malaysia
    • Posts 2,223
    • IIS MVPs
    • qbernard

    Re: Changing colors in chart based on some threshold values

    I think is possible, but I don't know the OWC chart object well., i'm sure you can set the series data color/pattern etc.

    Cheers,
    Bernard Cheah
Page 1 of 1 (4 items)
Page view counter