<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>dynamicdatadisplay Forum Rss Feed</title><link>http://www.codeplex.com/dynamicdatadisplay/Thread/List.aspx</link><description>dynamicdatadisplay Forum Rss Description</description><item><title>New Post: Clickable Bar charts in WPF</title><link>http://dynamicdatadisplay.codeplex.com/discussions/444562</link><description>&lt;div style="line-height: normal;"&gt;Good Morning,&lt;br /&gt;
&lt;br /&gt;
I am currently working with d3, and I would like to make clickable bar charts.&lt;br /&gt;
I am able to create custom circle element markers. Each marker is clickable and binded with an item.&lt;br /&gt;
I would like to do the same thing using bar charts (each bar would be clickable and binded with an item). Can somebody give me a way to do so ?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance,&lt;br /&gt;
Guillaume&lt;br /&gt;
&lt;/div&gt;</description><author>Guie</author><pubDate>Wed, 22 May 2013 09:50:07 GMT</pubDate><guid isPermaLink="false">New Post: Clickable Bar charts in WPF 20130522095007A</guid></item><item><title>New Post: Select a piece on ChartPlotter</title><link>http://dynamicdatadisplay.codeplex.com/discussions/443837</link><description>&lt;div style="line-height: normal;"&gt;Please help me, I do not understand.&lt;br /&gt;
&lt;/div&gt;</description><author>XmaksasX</author><pubDate>Wed, 22 May 2013 06:42:43 GMT</pubDate><guid isPermaLink="false">New Post: Select a piece on ChartPlotter 20130522064243A</guid></item><item><title>New Post: unable to erase chartplotter data on C# WPF</title><link>http://dynamicdatadisplay.codeplex.com/discussions/444531</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
I am using d3 for the first time and I find it very useful. I am taking a dynamic integer value coming in at frequent intervals and plotting it as a linegraph ('line1') onto a chartplotter named 'plotter'. What I want is to have a way to erase all the data from the chartplotter when I uncheck the checkbox and start plotting again once i check it back. I thought I might be able to accomplish it with plotter.Children.Remove(line1), but it does not erase the old data. Instead it plots over the old data again and I have double data lines. Here is the code example (includes some pseudo codes)  that I have so far. &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;ObservableDataSource&amp;lt;System.Windows.Point&amp;gt; source1=new ObservableDataSource&amp;lt;System.Windows.Point&amp;gt;();
LineGraph line1=new LineGraph(source1);
line1.Name = &amp;quot;Data1&amp;quot;;
int i=0;
start a timer to CaptureData...
CaptureData(....,...)
{
  if a CheckBox is checked...()
 {
    if (i == 0)
    {
    plotter.Children.Add(line1);
    }
    double graph_x = Convert.ToDouble(i);
    double graph_y = Convert.ToDouble(datapoint that I have);
    System.Windows.Point p1 = new System.Windows.Point(graph_x, graph_y);
    source1.AppendAsync(Dispatcher, p1);
    i++;
    }
 }
 Once the checkBox is unchecked
 {
    if (i != 0)
      {
         i=0;
         plotter.Children.Remove(line1);
      }
 }
}&lt;/code&gt;&lt;/pre&gt;

This code is able to take out the data plot once the box is unchecked, but it plots over the old data once I check it again. any way that I can avoid this? Any pointer to solve this are welcome...&lt;br /&gt;
&lt;/div&gt;</description><author>arunshankar20003</author><pubDate>Wed, 22 May 2013 06:15:29 GMT</pubDate><guid isPermaLink="false">New Post: unable to erase chartplotter data on C# WPF 20130522061529A</guid></item><item><title>New Post: How can i display datetime axis in Silverlight?</title><link>http://dynamicdatadisplay.codeplex.com/discussions/444429</link><description>&lt;div style="line-height: normal;"&gt;Hi;&lt;br /&gt;
&lt;br /&gt;
i have 2 list in my Silverlight Project. First list holds datetime values for x axis and second list holds values for y axis. if i convert datetime values to double i can display chart but datetime values shows in double format. How can i display the datetime calues in right format? &lt;br /&gt;
&lt;br /&gt;
Tnx.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// XAML //&lt;br /&gt;
&lt;br /&gt;
&amp;lt;d3:Chart BottomTitle=&amp;quot;Date&amp;quot; LeftTitle=&amp;quot;Value&amp;quot; Width=&amp;quot;800&amp;quot; Height=&amp;quot;600&amp;quot;&amp;gt;                
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;            &amp;lt;d3:Chart.Title&amp;gt;
                &amp;lt;TextBlock HorizontalAlignment=&amp;quot;Center&amp;quot; FontSize=&amp;quot;14&amp;quot; Margin=&amp;quot;0,5,0,5&amp;quot;&amp;gt;My Project&amp;lt;/TextBlock&amp;gt;
            &amp;lt;/d3:Chart.Title&amp;gt;
            &amp;lt;d3:LineGraph x:Name=&amp;quot;linegraph&amp;quot; Description=&amp;quot;Values&amp;quot; Stroke=&amp;quot;Blue&amp;quot; StrokeThickness=&amp;quot;1&amp;quot;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&amp;lt;/d3:Chart&amp;gt;&lt;br /&gt;
&lt;br /&gt;
//  C# //&lt;br /&gt;
&lt;br /&gt;
List&amp;lt;double&amp;gt; dates = new List&amp;lt;double&amp;gt;();&lt;br /&gt;
List&amp;lt;double&amp;gt; values = new List&amp;lt;double&amp;gt;();&lt;br /&gt;
&lt;br /&gt;
//fill lists&lt;br /&gt;
&lt;br /&gt;
linegraph.Plot(dates, values);&lt;br /&gt;
&lt;/div&gt;</description><author>oxijen</author><pubDate>Tue, 21 May 2013 14:10:42 GMT</pubDate><guid isPermaLink="false">New Post: How can i display datetime axis in Silverlight? 20130521021042P</guid></item><item><title>New Post: How i can get X\YTextProperty from CursorCoordinateGraph?</title><link>http://dynamicdatadisplay.codeplex.com/discussions/444191</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
Image is not visible for me.&lt;br /&gt;
&lt;br /&gt;
CursorCoordinateGraph text properties are encapsulated(I mean hidden, those are private properties).&lt;br /&gt;
But I guess you don't need those properties.&lt;br /&gt;
&lt;br /&gt;
Check the below properties&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;cursorCoordinateGraph.XTextMapping = x =&amp;gt; yourconversion;
cursorCoordinateGraph.YTextMapping = x =&amp;gt; yourconversion;

this.cursorCoordinateGraph.CustomXFormat = your custom format;
this.cursorCoordinateGraph.CustomYFormat = your custom format;&lt;/code&gt;&lt;/pre&gt;

If this is not what you are looking for, please attach image again or explain in detail what you are looking for, I will try to help you.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Ravi.&lt;br /&gt;
&lt;/div&gt;</description><author>battula32</author><pubDate>Mon, 20 May 2013 04:05:41 GMT</pubDate><guid isPermaLink="false">New Post: How i can get X\YTextProperty from CursorCoordinateGraph? 20130520040541A</guid></item><item><title>New Post: Need to fill line graph area with background color.</title><link>http://dynamicdatadisplay.codeplex.com/discussions/441251</link><description>&lt;div style="line-height: normal;"&gt;Hi&lt;br /&gt;
&lt;br /&gt;
As per my knowledge, There is no direct way to do area graphs(Area region) using DDD.&lt;br /&gt;
DDD has only VericalRange and HorizontalRange, these are to add horizontal and vertical rectangle regions.&lt;br /&gt;
&lt;br /&gt;
The line graph has(the return type of plotter.AddLineGraph(......))  point data collection.&lt;br /&gt;
Since this is WPF chart control, you can always add polygon with the point data collection.&lt;br /&gt;
you can do some thing like this&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;                System.Windows.Media.PointCollection polygonPoints = new System.Windows.Media.PointCollection();
                System.Windows.Media.SolidColorBrush yellowBrush = new System.Windows.Media.SolidColorBrush();
                yellowBrush.Color = System.Windows.Media.Colors.Yellow;
                System.Windows.Media.SolidColorBrush blackBrush = new System.Windows.Media.SolidColorBrush();
                blackBrush.Color = System.Windows.Media.Colors.Black;

                System.Windows.Shapes.Polygon polygon = new System.Windows.Shapes.Polygon();
                polygon.Stroke = blackBrush;
                polygon.Fill = yellowBrush;
                polygon.StrokeThickness = 3;
                var points = lineGraph.DataSource.GetPoints().ViewportToScreen(plotter1.Viewport.Transform).ToList();
                foreach (var pnt in points)
                {
                    polygonPoints.Add(new Point(pnt.X, pnt.Y));
                }

                //Here you have to add two more points to complete the loop
                polygonPoints.Add(new Point(0, hightOfChart));
                polygonPoints.Add(new Point(widthOfChart, hightOfChart));
 
               polygon.Points = polygonPoints;

                yourPrentGridOrPlot.Children.Add(polygon);
                //yourPrentGridOrPlot is parent grid where you plan to add ploygon&lt;/code&gt;&lt;/pre&gt;

I didn't try this code, But this code should work.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Ravi.&lt;br /&gt;
&lt;/div&gt;</description><author>battula32</author><pubDate>Mon, 20 May 2013 03:48:52 GMT</pubDate><guid isPermaLink="false">New Post: Need to fill line graph area with background color. 20130520034852A</guid></item><item><title>New Post: How i can get X\YTextProperty from CursorCoordinateGraph?</title><link>http://dynamicdatadisplay.codeplex.com/discussions/444191</link><description>&lt;div style="line-height: normal;"&gt;Hello, how i can get this values?&lt;br /&gt;
&lt;img src="https://dl.dropboxusercontent.com/u/26365458/image.jpg" alt="Image" /&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>SeRgik_aka_SeRg</author><pubDate>Sun, 19 May 2013 13:23:22 GMT</pubDate><guid isPermaLink="false">New Post: How i can get X\YTextProperty from CursorCoordinateGraph? 20130519012322P</guid></item><item><title>New Post: Select a piece on ChartPlotter</title><link>http://dynamicdatadisplay.codeplex.com/discussions/443837</link><description>&lt;div style="line-height: normal;"&gt;thank you WarFollowsMe, but that's not what I need, I need to select any part of the mouse.&lt;br /&gt;
&lt;br /&gt;
i need like this&lt;img src="http://s2.ipicture.ru/uploads/20130516/m6RJ9744.jpg" alt="Image" /&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>XmaksasX</author><pubDate>Thu, 16 May 2013 11:29:13 GMT</pubDate><guid isPermaLink="false">New Post: Select a piece on ChartPlotter 20130516112913A</guid></item><item><title>New Post: Select a piece on ChartPlotter</title><link>http://dynamicdatadisplay.codeplex.com/discussions/443837</link><description>&lt;div style="line-height: normal;"&gt;&lt;pre&gt;&lt;code&gt;var v = plotter.Visible;
v.XMin = 4;
v.Width = 4;
plotter.Visible = v;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>WarFollowsMe</author><pubDate>Thu, 16 May 2013 10:51:54 GMT</pubDate><guid isPermaLink="false">New Post: Select a piece on ChartPlotter 20130516105154A</guid></item><item><title>New Post: Select a piece on ChartPlotter</title><link>http://dynamicdatadisplay.codeplex.com/discussions/443837</link><description>&lt;div style="line-height: normal;"&gt;Hi All.&lt;br /&gt;
&lt;br /&gt;
Please tell me how to select a piece on ChartPlotter I can not understand..&lt;br /&gt;
&lt;/div&gt;</description><author>XmaksasX</author><pubDate>Thu, 16 May 2013 04:27:40 GMT</pubDate><guid isPermaLink="false">New Post: Select a piece on ChartPlotter 20130516042740A</guid></item><item><title>New Post: Independent Y-Axis on ChartPlotter</title><link>http://dynamicdatadisplay.codeplex.com/discussions/62284</link><description>&lt;div style="line-height: normal;"&gt;Hi All. &lt;br /&gt;
I got some little problem with &amp;quot;Independent Y-Axis&amp;quot; in my project. &lt;br /&gt;
&lt;br /&gt;
In sample &amp;quot;TwoHorizontalAxes&amp;quot; (last build DevSamples\TwoHorizontalAxes) you using converter &lt;br /&gt;
InjectedPlotterVerticalSyncConverter, and its working good. &lt;br /&gt;
&lt;br /&gt;
In my project I need HorisontalConverter, so I little bit changed yours code for my needs (same converter but for vertical &lt;br /&gt;
axes - InjectedPlotterHorizontalSyncConverter).&lt;br /&gt;
In project .Net 3.5 work fine, all axes independet scrolling and zooming. &lt;br /&gt;
But in .Net 4.0 all vertical axes just freezing (not zooming, not scrolling). It's happen because in .net 3.5 &lt;br /&gt;
ConvertCore happen only when i change mainplotter visible on horizontal axis. &lt;br /&gt;
But in .net 4.0 its happen when I changing mainplotter visible on horizontal axis and on one of vertical axis.&lt;br /&gt;
Maybe someone has some advice what can i do in this case?&lt;br /&gt;
&lt;br /&gt;
Upgrade&lt;br /&gt;
&lt;a href="https://skydrive.live.com/redir?resid=59843D7F85477B08!265&amp;amp;authkey=!AE6RFBSUvDGkmZ4" rel="nofollow"&gt;Link for problem sample&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>WarFollowsMe</author><pubDate>Wed, 15 May 2013 07:56:40 GMT</pubDate><guid isPermaLink="false">New Post: Independent Y-Axis on ChartPlotter 20130515075640A</guid></item><item><title>New Post: D3 openstreetmap position is wrong!</title><link>http://dynamicdatadisplay.codeplex.com/discussions/443416</link><description>&lt;div style="line-height: normal;"&gt;Hello everyone:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;       I am using the d3 openstreetmap in my application now.but I find that the latitude and longitude of position is not exactly accurate.I also test the official example of d3 map,but it has the same problem! Then i doubt that the openstreetmap has errors,but through the openstreet official website it has no problem!
      Is there someone who can help me? thanks!&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>aiolia</author><pubDate>Mon, 13 May 2013 03:24:32 GMT</pubDate><guid isPermaLink="false">New Post: D3 openstreetmap position is wrong! 20130513032432A</guid></item><item><title>New Post: Markers overlap</title><link>http://dynamicdatadisplay.codeplex.com/discussions/443226</link><description>&lt;div style="line-height: normal;"&gt;Hello!&lt;br /&gt;
&lt;br /&gt;
Does exist an algorithm to avoid markers overlap?&lt;br /&gt;
We don’t want that any marker (i.e CenteredTextMarker) overlap other markers or datapoints.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;/div&gt;</description><author>Didi71</author><pubDate>Fri, 10 May 2013 10:54:30 GMT</pubDate><guid isPermaLink="false">New Post: Markers overlap 20130510105430A</guid></item><item><title>New Post: Real-time candelstick chart</title><link>http://dynamicdatadisplay.codeplex.com/discussions/432440</link><description>&lt;div style="line-height: normal;"&gt;Hi&lt;br /&gt;
&lt;br /&gt;
EnumarableDataSource&amp;lt;T&amp;gt; has an event called RaiseDataChanged();&lt;br /&gt;
I am not sure whether you are looking for this or some sort of conversion based on limit changes. For limit changes check this=&amp;gt; SetYMapping(....).&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Ravi/&lt;br /&gt;
&lt;/div&gt;</description><author>battula32</author><pubDate>Mon, 06 May 2013 06:25:26 GMT</pubDate><guid isPermaLink="false">New Post: Real-time candelstick chart 20130506062526A</guid></item><item><title>New Post: Memory leak in D3</title><link>http://dynamicdatadisplay.codeplex.com/discussions/442251</link><description>&lt;div style="line-height: normal;"&gt;Hi &lt;br /&gt;
&lt;br /&gt;
Somehow the linegraph what you are adding is different from line what you are trying to delete.&lt;br /&gt;
 LineGraph line = plotter.AddLineGraph(......) has return type. &lt;br /&gt;
LineAndMarker&amp;lt;MarkerPointGraph&amp;gt; lineAndMarker = plotter.AddLineGraph(...) &lt;br /&gt;
Please create a collection of LineGraph and LineAndMarker&amp;lt;...&amp;gt; and remove these collected elements from the children&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; /// &amp;lt;summary&amp;gt;
    /// Chart plotter data class used in chartplotter to manipulate with plot name(entity name) and plot id(entity identifier)
    /// &amp;lt;/summary&amp;gt;
    public class ChartPlotterKey
    {
        /// &amp;lt;summary&amp;gt;
        /// Gets or sets the name of the plot.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;value&amp;gt;The name of the plot.&amp;lt;/value&amp;gt;
        public string PlotName
        {
            get;
            set;
        }

        /// &amp;lt;summary&amp;gt;
        /// Gets or sets the plot id.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;value&amp;gt;The plot id.&amp;lt;/value&amp;gt;
        public Guid PlotId
        {
            get;
            set;
        }
    }

******************** Add marker and line
 LineAndMarker&amp;lt;MarkerPointsGraph&amp;gt; lineAndMarker = injectedPlotter.AddLineGraph(pointDataSource, new Pen(brush, 2), new CirclePointMarker { Size = 9, Fill = brush }, new PenDescription(&amp;quot;pen Name&amp;quot;));
                lineAndMarker.LineGraph.Tag = &amp;quot;aaaa&amp;quot;;
                chartPlotterKey.PlotName = (string)lineAndMarker.LineGraph.Tag;
                this.lineAndMarkerGraphs.Add(chartPlotterKey, lineAndMarker);

************************* Add line graph
 LineGraph lineGraph = injectedPlotter.AddLineGraph(pointDataSource, color, 1, &amp;quot;bbbbb&amp;quot;);
                lineGraph.Tag =&amp;quot;bbbbb&amp;quot;;
                chartPlotterKey.PlotName = (string)lineGraph.Tag;
                this.lineGraphLines.Add(chartPlotterKey, lineGraph);
*********************

****** Remove lines
 foreach (KeyValuePair&amp;lt;ChartPlotterKey, LineGraph&amp;gt; line in this.lineGraphLines)
            {
                line.Value.DataChanged -= new EventHandler(this.LineGraph_DataChanged);
            }

            this.lineGraphLines.Clear();

            foreach (KeyValuePair&amp;lt;ChartPlotterKey, LineAndMarker&amp;lt;MarkerPointsGraph&amp;gt;&amp;gt; line in this.lineAndMarkerGraphs)
            {
                line.Value.LineGraph.DataChanged -= new EventHandler(this.LineGraph_DataChanged);
            }

            this.lineAndMarkerGraphs.Clear();

            foreach (KeyValuePair&amp;lt;Guid, InjectedPlotter&amp;gt; kvp in this.injectedPlotters)
            {
                kvp.Value.Viewport.PropertyChanged -= this.OnInjectedPlotterViewportPropertyChanged;
                kvp.Value.MainVerticalAxis.MouseDown -= this.OnInjectedVerticalAxisMouseDown;

                kvp.Value.Children.Clear();

                if (this.Children.Contains(kvp.Value))
                {
                    this.Children.Remove(kvp.Value);
                }
            }

            this.injectedPlotters.Clear(); 
&lt;/code&gt;&lt;/pre&gt;

try something like this. Or if you have the sample where this code doesn't work, please share it, I will try to find the issue.&lt;br /&gt;
 &lt;br /&gt;
Regards &lt;br /&gt;
Ravi&lt;br /&gt;
&lt;/div&gt;</description><author>battula32</author><pubDate>Mon, 06 May 2013 06:07:26 GMT</pubDate><guid isPermaLink="false">New Post: Memory leak in D3 20130506060726A</guid></item><item><title>New Post: Issues with Memory leaks when adding and removing lines from live data</title><link>http://dynamicdatadisplay.codeplex.com/discussions/356125</link><description>&lt;div style="line-height: normal;"&gt;Hi&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://dynamicdatadisplay.codeplex.com/discussions/442251" rel="nofollow"&gt;chek this&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
this link may help you&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Ravi&lt;br /&gt;
&lt;/div&gt;</description><author>battula32</author><pubDate>Mon, 06 May 2013 06:00:36 GMT</pubDate><guid isPermaLink="false">New Post: Issues with Memory leaks when adding and removing lines from live data 20130506060036A</guid></item><item><title>New Post: Memory leak in D3</title><link>http://dynamicdatadisplay.codeplex.com/discussions/442251</link><description>&lt;div style="line-height: normal;"&gt;Hello!&lt;br /&gt;
&lt;br /&gt;
I have the same problem like here: &lt;a href="https://dynamicdatadisplay.codeplex.com/discussions/356125" rel="nofollow"&gt;https://dynamicdatadisplay.codeplex.com/discussions/356125&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In few words, i'm using simple method, where i every second remove all LineGraphs from ChartPlotter and add new LineGraph.&lt;br /&gt;
&lt;br /&gt;
I use this to add line:&lt;br /&gt;
GraphPlotter.AddLineGraph(pointsList, new Pen(Brushes.Black, 2), new CircleElementPointMarker {Size = 5.0, Brush = Brushes.Blue, Fill = Brushes.Blue},                                   new PenDescription(&amp;quot;description&amp;quot;));&lt;br /&gt;
&lt;br /&gt;
and this to remove:&lt;br /&gt;
GraphPlotter.Children.RemoveAll(typeof(LineGraph));&lt;br /&gt;
GraphPlotter.Children.RemoveAll(typeof(ElementMarkerPointsGraph));&lt;br /&gt;
&lt;br /&gt;
I control the number of childrens and it is 16 always when i enter method again, so this is not problem with &amp;quot;not removed children&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Eventually after each cycle of remove/add LineGraph, the memory, which my app is using, is increasing by 1-2 mb.&lt;br /&gt;
&lt;br /&gt;
Hope for your help.&lt;br /&gt;
&lt;/div&gt;</description><author>FlashPlayer</author><pubDate>Wed, 01 May 2013 17:47:46 GMT</pubDate><guid isPermaLink="false">New Post: Memory leak in D3 20130501054746P</guid></item><item><title>New Post: Bezier filter</title><link>http://dynamicdatadisplay.codeplex.com/discussions/441720</link><description>&lt;div style="line-height: normal;"&gt;Nevermind i did it myself :)&lt;br /&gt;
For anyone that is interested here is the filter, please take in mind that is still a little bit rought.&lt;br /&gt;
Part of the code i got from here : &lt;a href="http://stackoverflow.com/questions/13940983/how-to-draw-bezier-curve-by-several-points" rel="nofollow"&gt;http://stackoverflow.com/questions/13940983/how-to-draw-bezier-curve-by-several-points&lt;/a&gt;&lt;br /&gt;
To use just do like this : LineGraph.Filters.Add(new BezierLineFilter());&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;class BezierLineFilter : PointsFilterBase
{
    public override List&amp;lt;Point&amp;gt; Filter(List&amp;lt;Point&amp;gt; points)
    {
        return GetBezierApproximation(points.ToArray(), 30);
    }

    public override void SetScreenRect(Rect screenRect)
    {
        lastX = screenRect.X + screenRect.Width;
    }

    List&amp;lt;Point&amp;gt; GetBezierApproximation(Point[] controlPoints, int outputSegmentCount)
    {
        List&amp;lt;Point&amp;gt; result = new List&amp;lt;Point&amp;gt;();

        if (controlPoints != null &amp;amp;&amp;amp; controlPoints.Length &amp;gt; 1)
        {
            Point[] points = new Point[outputSegmentCount + 1];
            for (int i = 0; i &amp;lt;= outputSegmentCount; i++)
            {
                double t = (double)i / outputSegmentCount;
                points[i] = GetBezierPoint(t, controlPoints, 0, controlPoints.Length);
            }

            result = new List&amp;lt;Point&amp;gt;(points);
        }
        return result;
    }

    Point GetBezierPoint(double t, Point[] controlPoints, int index, int count)
    {
        if (count == 1)
            return controlPoints[index];
        var P0 = GetBezierPoint(t, controlPoints, index, count - 1);
        var P1 = GetBezierPoint(t, controlPoints, index + 1, count - 1);
        return new Point((1 - t) * P0.X + t * P1.X, (1 - t) * P0.Y + t * P1.Y);
    }
}&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>joao_ladeira</author><pubDate>Fri, 26 Apr 2013 21:13:39 GMT</pubDate><guid isPermaLink="false">New Post: Bezier filter 20130426091339P</guid></item><item><title>New Post: Bezier filter</title><link>http://dynamicdatadisplay.codeplex.com/discussions/441720</link><description>&lt;div style="line-height: normal;"&gt;Hi can someone guide me trhu what direction should i go to get a bezier filter?.&lt;br /&gt;
&lt;br /&gt;
I searched all over but cannot find a way to draw a curve between two points instead of the normal straight line, basically i would like to add three points for example and the graph automaticaly draws a bezier curve between those points, can someone help me?&lt;br /&gt;
&lt;br /&gt;
Right now i found a StepLineFilter wich does what is suposed to do and it works :) i would like to add a filter like that but instead of steps add those middle points in order to draw a curve.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;/div&gt;</description><author>joao_ladeira</author><pubDate>Fri, 26 Apr 2013 20:21:24 GMT</pubDate><guid isPermaLink="false">New Post: Bezier filter 20130426082124P</guid></item><item><title>New Post: Need to fill line graph area with background color.</title><link>http://dynamicdatadisplay.codeplex.com/discussions/441251</link><description>&lt;div style="line-height: normal;"&gt;Hi All,&lt;br /&gt;
&lt;br /&gt;
i have created a chart using dynamic data display dll. I need to fill the graph area with background color. In the code below&lt;br /&gt;
&lt;br /&gt;
plotter1.AddLineGraph(ds1,&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;               new Pen(Brushes.Green, 1),
               new CirclePointMarker { Size = 0.0, Fill = Brushes.Black },
               new PenDescription(&amp;quot;Volts&amp;quot;));


&lt;/code&gt;&lt;/pre&gt;

i am not seeing the option to set background color for plotted graph reagion. &lt;br /&gt;
Any suggestion where i am missing.&lt;br /&gt;
&lt;/div&gt;</description><author>shambhu1234</author><pubDate>Tue, 23 Apr 2013 07:28:40 GMT</pubDate><guid isPermaLink="false">New Post: Need to fill line graph area with background color. 20130423072840A</guid></item></channel></rss>