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
370
Line Chart with Nulls
posted

 

Hi guys!

Is there any way to get chart like this:

I'm using composite chart with line charts on it. 

DataTable is used as a datasource for each series.

I need line breaks, without interpolation or falling down to zero-value.

Any help is appreciated.

 

  • 53790
    Verified Answer
    posted

    Hello Nikolay,

    Maybe one possible approach to achieve the desired behavior could be if you handle FillSceneGraph event.  There you could check the values of each point and deside what to do (to draw the line or not). I made small sample where I remove the part ot Line which falling down to zero value. Please take a look at the attached sample for more details and if you have any questions, do not hesitate to write us.

    private void BurnDownChart_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e)

    {

        foreach (Primitive pr in e.SceneGraph)

        {

            if (pr.Row != -1 && pr.Column != -1 && pr.GetType() == typeof(Polyline) && Convert.ToInt32(((Polyline)pr).points[1].Value) == 0

                && Convert.ToInt32(((Polyline)pr).points[2].Value) == 0)

            {

                pr.GetPrimitives().Clear();

            }

        }

    }

    LineChartIssue.zip