Click here to Skip to main content
15,891,204 members
Articles / Programming Languages / C#

Cristi Potlog's Chart Control for .NET

Rate me:
Please Sign up or sign in to vote.
4.60/5 (27 votes)
24 Jul 2005MIT5 min read 223.5K   11.6K   114  
This article introduces a sample chart control for Windows Forms.
#region Copyright �2005, Cristi Potlog - All Rights Reserved
/* -------------------------------------------------------------- *
 *      Copyright �2005, Cristi Potlog - All Rights reserved      *
 *                                                                *
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY *
 * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT    *
 * LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR    *
 * FITNESS FOR A PARTICULAR PURPOSE.                              *
 *                                                                *
 * THIS COPYRIGHT NOTICE MAY NOT BE REMOVED FROM THIS FILE.       *
 * -------------------------------------------------------------- */
#endregion Copyright �2005, Cristi Potlog - All Rights Reserved

#region References
using System;
using System.ComponentModel;
using System.Windows.Forms;
#endregion

namespace CristiPotlog.ChartControl
{
	/// <summary>
	/// Represents the display setting for the value axis of the chart control.
	/// </summary>
	[TypeConverter(typeof(ExpandableObjectConverter))]
	public class ChartValueAxisSettings : ChartAxisSettingsBase
	{
		#region Fields
		private ChartValueScaleSettings scale = null;
		#endregion

		#region Constructor
		/// <summary>
		/// Creates a new instance of class ChartValueAxisSettings.
		/// </summary>
		/// <param name="owner">A Control object representing the owner chart.</param>
		internal ChartValueAxisSettings(Control owner) : base(owner)
		{
			// init fields
			this.scale = new ChartValueScaleSettings(owner);
		}

		#endregion

		#region Properties
		/// <summary>
		/// Determines the display settings for the scale of the axis.
		/// </summary>
		[Description("Determines the display settings for the scale of the axis.")]
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
		public ChartValueScaleSettings Scale
		{
			get
			{
				return this.scale;
			}
		}

		#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 MIT License


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

Comments and Discussions