Bind Multiple Pie Chart Areas Horizontally using asp.net chart control


/*All pie Chart Align in horizontal Order*/
 using System.Web.UI.DataVisualization.Charting;  
 using System.Drawing;  
 public partial class MultiPieChartLayout: System.Web.UI.Page  
 {  
   Random rand =new Random();  
   protected void Page_Load(object sender, EventArgs e)  
   {  
     // Clear all series and chart areas so we can re-add them  
     Chart2.Series.Clear();  
     Chart2.ChartAreas.Clear();  
     for (int i = 0; i < 3; i++)  
     {  
       // Create four new series and four new chart areas  
       Chart1.Series.Add("Series" + i.ToString());  
       Chart1.ChartAreas.Add("ChartArea" + i.ToString());  
       // Assign each series to a separate chart area  
       Chart1.Series[i].ChartArea = "ChartArea" + i.ToString();  
       // Set all series to be pie  
       Chart1.Series[i].ChartType = SeriesChartType.Pie;  
       // Add 3 random points to each pie chart  
       for (int j = 0; j < 3; j++)  
         Chart2.Series[i].Points.AddXY(i, rand.Next(20, 40));  
     }  
     // chart area position for the first chart area.  
     Chart2.ChartAreas["ChartArea0"].Position.X = 5;  
     Chart2.ChartAreas["ChartArea0"].Position.Y = 15;  
     Chart2.ChartAreas["ChartArea0"].Position.Width = 15;  
     Chart2.ChartAreas["ChartArea0"].Position.Height = 40;  
     //chart area position for the second chart area.  
     Chart2.ChartAreas["ChartArea1"].Position.X = 30;  
     Chart2.ChartAreas["ChartArea1"].Position.Y = 15;  
     Chart2.ChartAreas["ChartArea1"].Position.Width = 15;  
     Chart2.ChartAreas["ChartArea1"].Position.Height = 40;  
     //chart area position for the third chart area.  
     Chart2.ChartAreas["ChartArea2"].Position.X = 55;  
     Chart2.ChartAreas["ChartArea2"].Position.Y = 15;  
     Chart2.ChartAreas["ChartArea2"].Position.Width = 15;  
     Chart2.ChartAreas["ChartArea2"].Position.Height = 40;  
   }  
 }  

Read More »

C# Character Set


A character denotes any letter of the alphabet, digit or special symbol used to represent information. Following table shows the valid letters, numbers and special symbols allowed in C#
Read More »

What is C# ?


C# (pronounced as ‘C Sharp’) is the first language that has been
designed from ground up with Internet in mind. It is a concise, clean, and modern
language that combines the best features of many commonly used languages: VB, Java and C++. As truly said it combines the power of C++ with productivity of VB and elegance of Java.
Read More »

What are links and symbolic links in UNIX file system?

A link is a second name (not a file) for a file. Links can be used to assign more than one name to a file, but cannot be used to assign a directory more than one name or link filenames on different computers.
Symbolic link 'is' a file that only contains the name of another file.Operation on the
symbolic link is directed to the file pointed by the it.Both the limitations of links are
eliminated in symbolic links.
Commands for linking files are:
Link ln filename1 filename2
Symbolic link ln -s filename1 filename2
Read More »

How are devices represented in UNIX ?


All devices are represented by files called special files that are located in / dev
directory. Thus, device files and other files are named and accessed in the same way. A 'regular file' is just an ordinary data file in the disk. A 'block special file' represents a device with characteristics similar to a disk (data transfer in terms of blocks). A 'character special file' represents a device with characteristics similar to a keyboard (data transfer is by stream of bits in sequential order).
Read More »