Dragging C1DataGrid Data to C1Chart Control Using Column Headers
In this blog article, I am going to showcase a small implementation which shows the interaction between C1Chart and C1DataGrid with the help of C1DragDropManager control from our Silverlight suite. Objective of the blog is to support dragging of Column headers to Chart control to display corresponding Column values as DataSeries. Implementation begins by setting up the C1DataGrid and C1Chart control.
If you observe the above module to initialize the C1Chart, you will notice that I have added a dummy series. This is required to display Axis Labels initially as they are not visible till we have a DataSeries added to the Series collection. Next we need to add a C1DragDropManager control.
Once you have the C1DragDropManager control, you need to enable the dragging of the ColumnHeaders and Chart Bars(PlotElements).
Next we setup the Chart and Grid controls as drop source as well.
Now remains the final implementation to add the DataSeries on the basis of dragged Column Header.
Download the attached sample applications for complete implementation. Download C# Sample Download VB.Net Sample