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.