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
227
Line Chart with symbols in Datapoints-Dropping Null values
posted

Hi, I have a line chart drawn with particular symbols in datapoints for each line.I have Used NULL Handling Dontplot for dropping the null points.

But it takes different symbols for the same line while dropping. Please find my code as below in FillSceneGraph,

  //To add symbols at datapoint in each line

                    SymbolIcon[] symbol_icons = new SymbolIcon[6];

                    symbol_icons[0] = SymbolIcon.Triangle;

                    symbol_icons[1] = SymbolIcon.Circle;

                    symbol_icons[2] = SymbolIcon.Diamond;

                    symbol_icons[3] = SymbolIcon.UpsideDownTriangle;

                    symbol_icons[4] = SymbolIcon.Plus;

                    symbol_icons[5] = SymbolIcon.Square;

                         foreach (Polyline polyline in allPolylines)

                    {

                        index = index == 5 ? 0 : index + 1;

                        foreach (DataPoint dataPoint in polyline.points)

                        {

                            Symbol symbol = new Symbol();

                            symbol.icon = symbol_icons[index];

                            symbol.iconSize = SymbolIconSize.Medium;

                            symbol.PE.Stroke = polyline.PE.Fill;

                            symbol.PE.Fill = polyline.PE.Fill;

                            symbol.point = dataPoint.point;

                            symbols.Add(symbol);

                        }

                    }

  

Is there any way to retain the same symbols for the same line which breaks in the middle for the NULL values?

Your help is highly appreciated.

Parents
  • 37874
    posted

    Hi Rithanya,

    From the provided code snippet I am not able to tell what is causing the issue. Please provide me with a small isolated sample, demonstrating the behavior you are experiencing, in order to be able to investigate this further. Thank you.

Reply Children
No Data