Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1401
Negative values on pie charts
posted

We are using UltraWinChart to generate PieCharts.  Experiencing issues with pie chart when there are negative values in the dataset. It just doesn't come up. But if I try to plot the same in excel it woks fine. Does the winChart control treat negative values in a different way?

Parents
No Data
Reply
  • 28496
    Offline posted

    like Excel, UltraWinChart will plot the absolute value of any negative values in a Pie Chart.

    this.ultraChart1.ChartType = ChartType.PieChart;
    this.ultraChart1.Data.DataSource = new double[] { 1, 1, 1, -1 };
    this.ultraChart1.Data.DataBind();

    this should generate a pie with four equally sized slices.

Children
No Data