BoxWhisker in FlexChart displays flat box

Posted by: arminder.brooks on 22 August 2022, 6:50 am EST

  • Posted 22 August 2022, 6:50 am EST - Updated 3 October 2022, 10:15 pm EST



    If anyone can help that would be great trying to create box whisker plot and I’ve followed sample code but I think I am missing something. Here is my code:

    ```

    boxPlot.BeginUpdate();

                //get data from handler
                List<DurationValue> data = handler.GetGraphData();
    
                boxPlot.Series.Clear();
    
                boxPlot.ChartType = C1.Chart.ChartType.Column;
                boxPlot.DataSource = data;
                boxPlot.BindingX = "Duration";
                boxPlot.ToolTip.Content = "{seriesName} - {name}\nMin: {Min}\nFirst Quartile: {FirstQuartile}\nMean: {Mean}\nMedian: {Median}\nThird Quartile: {ThirdQuartile}\nMax: {Max}";
     
                boxPlot.Legend.Position = C1.Chart.Position.None;
                boxPlot.AxisX.MajorGrid = false;
    
                boxPlot.AxisY.Title = "";
    
                Series series = new BoxWhisker()
                {
                    Name = "Storm Duration",
                    Binding = "Value",                          
                    QuartileCalculation = C1.Chart.QuartileCalculation.InclusiveMedian
                };
                boxPlot.Series.Add(series);
                          
                boxPlot.EndUpdate();
    
    public class DurationValue
    {
        public string Duration { get; set; }
        public double Value { get; set; }
    }
  • Posted 23 August 2022, 3:24 am EST

    Hi,

    Apologize for the inconvenience, but we didn’t got your point that what you want to achieve. Could you please clarify your issue with details.

    As per we understand that you are plotting a BoxWhisker series in FlexChart. JFYI, the BoxWhisker renders the symbol according to the grouped data. The FlatBox renders to show the quartile on particular grouped data.

    Please refer the attached sample for the same: BoxWhiskerChart.zip

    If still you are unable to achieve your requirement. Then please clarify.

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels