Archive

Posts Tagged ‘Pie Chart’

MS Chart Part 2 (A brief description of different Chart-Types)

This post describes mostly about the use cases of a collection of popular chart-types. Besides, I go a bit further demonstrating how to developing it in .Net MsChart through short code snippets. If you are new to this area you can find it easier to start it with my previous post here.



Different Chart-Types:
In the previous post, I taught the basics of MsChart with two easiest chart-types; MS Chart and Bar-Chart . In this post you can read deeper about other more complex charts with short development details.

–          Pie and Doughnut Chart: Pie charts are common in business and journalism, perhaps because they are perceived as being less

Pie-Chart

Pie-Chart

“geeky” than other types of graph. However statisticians generally regard pie charts as a poor method of displaying information, and they are uncommon in scientific literature. It is mostly used in reports as just look and get the point (for top level managers and ordinary users) maybe because It is easy to distinguish but not accurate.
As easily as changing the following code of the previous article you can change your Bar-Chart to Pie-Chart:
original: MSChart.Series[“Series1”].ChartType = SeriesChartType.Column;
updated: MSChart.Series[“Series1”].ChartType = SeriesChartType.Pie;

Line-Chart

Line-Chart

–         Line Chart: A line chart is often used to visualize a trend in data over intervals of time (or other units) – a time series – thus the line is often drawn chronologically. It is mostly used by statisticians because of the accuracy and visualization.
As easily as changing the following code of the previous article you can change your Bar-Chart to Line-Chart:
original: MSChart.Series[“Series1”].ChartType = SeriesChartType.Column;
updated: MSChart.Series[“Series1”].ChartType = SeriesChartType.Line;

Area-Chart

Area-Chart

–          Area-Chart: An area chart or area graph displays graphically quantitive data. It is based on the line chart. The area between axis and line are commonly emphasized with colors, textures and hatchings. Commonly one compares with an area chart with two or more quantities. It is a bit more distracting compared with Line-Chart however it is beautiful.
As easily as changing the following code of the previous article you can change your Bar-Chart to Area-Chart:
original: MSChart.Series[“Series1”].ChartType = SeriesChartType.Column;
updated:MSChart.Series[“Series1”].ChartType = SeriesChartType.SplineArea;

Radar-Chart

Radar-Chart

–          Radar-Chart: A radar chart is a graphical method of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point. The relative position and angle of the axes is typically uninformative. The radar chart is also known as web chart, spider chart, star chart, cobweb chart, star plot, irregular polygon, polar chart, or kiviat diagram.
One application of radar charts is the control of quality improvement to display the performance metrics of any ongoing program. They are also being used in sports to chart players’ strengths and weaknesses, where they are usually called spider charts.
As easily as changing the following code of the previous article you can change your Bar-Chart to Radar-Chart:
original: MSChart.Series[“Series1”].ChartType = SeriesChartType.Column;
updated: MSChart.Series[“Series1”].ChartType = SeriesChartType.Radar;

Funnel-Chart

Funnel-Chart

–          Funnel-Chart: Funnel charts are a type of chart, often used to represent stages in a sales process and show the amount of potential revenue for each stage. This type of chart can also be useful in identifying potential problem areas in an organization’s sales processes. A funnel chart is similar to a stacked percent bar chart. A funnel chart displays values as progressively decreasing proportions. The size of the area is determined by the series value as a percentage of the total of all values.
As easily as changing the following code of the previous article you can change your Bar-Chart to Funnel-Chart:
original: MSChart.Series[“Series1”].ChartType = SeriesChartType.Column;
updated: MSChart.Series[“Series1”].ChartType = SeriesChartType.Funnel;
To make your chart the most beautiful one in the planet, add these codes to make it look hotter. 🙂

 // Set funnel Y values style
MSChart.Series["Series1"]["FunnelStyle"] = "YIsHeight";
// Set funnel data point labels style
MSChart.Series["Series1"]["FunnelLabelStyle"] = "Outside";
// Place labels on the left side
MSChart.Series["Series1"]["FunnelOutsideLabelPlacement"] = "Left";
// Set gap between points
MSChart.Series["Series1"]["FunnelPointGap"] = "2";
// Set minimum point height
MSChart.Series["Series1"]["FunnelMinPointHeight"] = "1";
// Set 3D angle
MSChart.Series["Series1"]["Funnel3DRotationAngle"] = "7";
// Set 3D drawing style
MSChart.Series["Series1"]["Funnel3DDrawingStyle"] = "CircularBase";

This is the end. I am looking forward to reading your comments and feedbacks.

*Reference: www.wikipedia.com.