draw rectangle boundary over markers ( to differentiate cluster of markers)

Feb 1, 2012 at 4:31 PM


I found d3 stuff is really cool...

I have started using the silverlight version of d3 since 31st of jan

I am clustering the circlemarker points with a specific color and a boundary.

From the code behind,  I add many circlemarkergraph objs to the chart grid to plot many series/clusters. In the same way, i try to add rectangle to d3:plot.

But it is not a scaled boundary... could anyone help

The following is the code

My Xaml

<d3:Chart Name="mcChart" > 
 <TextBlock HorizontalAlignment="Center" FontSize="14" Margin="0,5,0,5">Rectangle boundary</TextBlock>
 <Grid Name="markers"> 
<d3:Plot Name="plt" > 
ToolTipService.ToolTip="x·sin(1/x) lower bound"/>--> 
</Grid> </d3:Chart>

[I have written for one single series, originally the below code runs for multi series]

CircleMarkerGraph mg = new CircleMarkerGraph();
DataRect dr = new DataRect(5, 1, 55, 7);

Path pth = new Path()
  Data = new RectangleGeometry()
  Rect = new Rect(plt.PlotRect.XMin, plt.PlotRect.YMax,plt.PlotRect.Width, plt.PlotRect.Height)

                    Stroke = new SolidColorBrush(Colors.Blue),
                    StrokeThickness = 4,
double[] arrX = new double[6] { 10, 20, 30, 40, 50, 60 };
double[] arrY = new double[6] { 2, 3, 1, 8, 5, 4 };

mg.Color = "Red";
mg.Size = 4;
mg.PlotXY(arrX, arrY);
mg.StrokeThickness = 0;
Can someone suggest any alternative way, i need to draw many series and each shud have boundary..

My Code behind
Feb 3, 2012 at 1:48 PM

Nice posting.thanks for sharing your knowledge.

website worth calculator

Apple Laptop price List

Toshiba Laptop price List

Dell Laptop price List

Blackberry Mobile Price List

Micromax Mobile Price List

Samsung Mobile Price List

Nokia Mobile Price List

mobile price india

laptop price india