void lbFunction_SelectedIndexChanged(object sender, RoutedEventArgs e)
        {
            ScatterCircularFunction function;

            switch (lbFunction.SelectedIndex)
            {
            case 0:
                function = ScatterCircularFunction.ArchimedeanSpiral;
                break;

            case 1:
                function = ScatterCircularFunction.Rose;
                break;

            case 2:
            default:
                function = ScatterCircularFunction.Folium;
                break;
            }
            chart.DataSource = FunctionsPointGenerator.GenerateDegreeScatterPoints(function);
            chart.Animate();
        }
 public PolarLineScatterSeriesControl()
 {
     InitializeComponent();
     chart.DataSource = FunctionsPointGenerator.GenerateDegreeScatterPoints(ScatterCircularFunction.ArchimedeanSpiral);
 }