Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / C#

Simple Column Chart Generator

Rate me:
Please Sign up or sign in to vote.
4.79/5 (15 votes)
26 Jan 2008CPOL3 min read 74.8K   2.7K   68  
With this library, it’s possible to generate some column chart images easily
using System;
using System.Drawing;

namespace ForLogic.ColumnChartGenerator.ObjectModel
{
	public class ColumnChartItem
	{
		#region fields
		Color _fillColor;
		Decimal _value;
		String _description;
		#endregion
		
		#region properties
		public Color FillColor
		{
			get{return _fillColor;}
			set{_fillColor = value;}
		}
		public Decimal Value
		{
			get{return _value;}
			set{_value = value;}
		}
		public String Description
		{
			get{return _description;}
			set{_description = value;}
		}
		#endregion
		
		#region constructors
		public ColumnChartItem(){}
		public ColumnChartItem(Color fillColor, String description, Decimal value)
		{
			_fillColor = fillColor;
			_description = description;
			_value = value;
		}
		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer ForLogic Software
Brazil Brazil
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions