I am trying to draw a graph in my Windows Phone 7 app. The problem I am facing is that the graph has sharp edges, but I am required to have a graph with soft edges.
I am using following code to make the edges soft:
Polyline chartPolyline = new Polyline();
chartPolyline.Points = graphPointsCollection; // graphPointsCollection is collection of points
chartPolyline.Stroke = borderBrush;
chartPolyline.StrokeThickness = 3;
chartPolyline.StrokeLineJoin = PenLineJoin.Round;
chartPolyline.StrokeDashCap = PenLineCap.Round;
chartPolyline.StrokeStartLineCap = PenLineCap.Round;
chartPolyline.StrokeEndLineCap = PenLineCap.Round;
But the output still has sharp edges. Where am I going wrong?
For smooth curves you can use, for example, Bezier curve: