in

Software FX Community

Discuss and find help for all Software FX products.

Stacked Charts

Last post 02-10-2010 12:23 PM by CarlosAC. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 02-05-2010 8:40 AM

    Stacked Charts

    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

  • 02-05-2010 9:48 AM In reply to

    • Frank
    • Top 10 Contributor
    • Joined on 11-30-2006
    • USA

    Re: Stacked Charts

    Yes. Use chart.AllSeries.PointLabels.Format to control what gets displayed. See docs. for details.

    Francisco Padron
    www.chartfx.com
  • 02-05-2010 9:48 AM In reply to

    • CarlosAC
    • Top 10 Contributor
    • Joined on 02-04-2009
    • Costa Rica

    Re: Stacked Charts

    Hi Smartie

    In order to get the point lables to display the percentage that series plot takes up of the full 100% instead of the value, please check following code:

    chart1.AllSeries.PointLabels.Format = "%P %%";

    -- Pipon

     

  • 02-05-2010 9:56 AM In reply to

    Re: Stacked Charts

     Excellent, thank you.

  • 02-10-2010 8:20 AM In reply to

    Re: Stacked Charts

    Hey,

    Here is the chart I have made using the above help:

    Why don't all the stack totals add up to 100%? Some are 99%, others 101%?

    Thanks

  • 02-10-2010 12:23 PM In reply to

    • CarlosAC
    • Top 10 Contributor
    • Joined on 02-04-2009
    • Costa Rica

    Re: Stacked Charts

    Hi Smartie
    Please try setting the DataFormat.Decimals property as follow:
    chart1.AxisY.DataFormat.Decimals = 2;
    -- Pipon
Page 1 of 1 (6 items)
Copyright 2008 Software FX, Inc.