Skip to main content

Posts

Showing posts from September, 2010

How to change chart series label text color in asp.net

Change chart series label text color programmatically The Chart class serves as the root class of the Chart control. The Chart class exposes all of the properties, methods, and events of the Chart Web server control. The Chart Series collection property stores Series objects which are used to store data that is to be displayed, along with attributes of that data. The Chart ChartAreas collection property stores ChartArea objects, which are primarily used to draw one or more charts using one set of axes. The following asp.net c# web development tutorial code demonstrates how we can change the chart series label text color programmatically. Here we will use the Chart class Series property to get the chart series collection. Then we will get the specified series instance by its name. And then we will set the specified series label text color by setting the Series class LabelForeColor property value. The Chart Series property gets a SeriesCollection object w...

How to change Chart series color in asp.net

Change chart series color programmatically The Chart class serves as the root class of the Chart control. The Chart class exposes all of the properties, methods, and events of the Chart Web server control. The Chart Series collection property stores Series objects which are used to store data that is to be displayed, along with attributes of that data. The Chart ChartAreas collection property stores ChartArea objects, which are primarily used to draw one or more charts using one set of axes. The following asp.net c# web development tutorial code demonstrates how we can change the chart series color programmatically. Here we will use the Chart class Series property to get the chart series collection. Then we will get the specified series instance by its name. And then we will set the specified series color by setting the Series class Color property value. The Chart Series property gets a SeriesCollection object which contains Series objects. This prope...

asp.net - How to change Chart height programmatically

Change Chart height programmatically The Chart class serves as the root class of the Chart control. The Chart class exposes all of the properties, methods, and events of the Chart Web server control. The Chart Series collection property stores Series objects which are used to store data that is to be displayed, along with attributes of that data. The Chart ChartAreas collection property stores ChartArea objects, which are primarily used to draw one or more charts using one set of axes. The following asp.net c# web development tutorial code demonstrates how we can change the height of a Chart object. Here we used the Chart class Height property to change Chart height programmatically. The Chart class Height property gets or sets the height of the entire chart image in pixels. This property value is a Unit that represents the height, in pixels, of the entire chart image. So finally, using the Chart class Height property the asp.net web developers can change...