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
1015
How to remove the outline of the series icons?
posted
I tried to remove the outline from the icons in a data series of a composite chart. Am I doing something wrong here or where is my failure? I would have expected the outline to disappear when I’m doing something like this:
TheNumericTimeSeries.PEs.Add(new PaintElement(theObject.SeriesColor));
LineAppearance TheLine = new LineAppearance();
TheLine.IconAppearance.Icon = SymbolIcon.Circle;
TheLine.IconAppearance.IconSize = SymbolIconSize.Large;
TheLine.IconAppearance.PE.Fill = theObject.SeriesColor;
TheLine.IconAppearance.PE.Stroke = theObject.SeriesColor;
TheLine.IconAppearance.PE.StrokeWidth = 0;
TheLine.IconAppearance.PE.StrokeOpacity = 0;
 TheLine.LineStyle.MidPointAnchors = true;
LineChartAppearance App = new LineChartAppearance();
App.LineAppearances.Add(TheLine);
ChartLayerAppearance chartLayer = new ChartLayerAppearance {ChartTypeAppearance = App};

 

 

 

 

Any ideas how to get rid of the black outline?

  • 28496
    Offline posted

    this looks like a bug on our part, but you can easily work around it by adding this event handler:

            void ultraChart1_ChartDrawItem(object sender, ChartDrawItemEventArgs e)
            {
                PointSet pS = e.Primitive as PointSet;
                if (pS != null)
                {
                    pS.PE.StrokeOpacity = 0;
                }
            }

  • 28496
    Verified Answer
    Offline posted

    i take it back, it's not a bug.  you just have to do this:

    TheLine.IconAppearance.PE.ElementType = PaintElementType.SolidFill