Skip to main content

Posts

Showing posts from October, 2010

asp.net - How to change chart series marker style

Set or change chart series marker style 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 set or change the chart series marker style 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 marker style by setting the Series class MarkerStyle property value. The Chart Series property gets a SeriesCollection object wh...

asp.net - How to change chart series marker size

Change chart series marker size 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 marker size 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 marker size by setting the Series class MarkerSize property value. The Chart Series property gets a SeriesCollection object which contains Serie...

asp.net - How to change chart legend title separator color

Change the Chart legend title separator color 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 legend title default separator color programmatically. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will set or change the Chart legend’s title separator color by setting the Legend class TitleSeparatorColor property value. The Chart Legends property gets or sets ...

asp.net - How to create a chart legend title

Create the Chart legend title 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 create the Chart legend title programmatically. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will create or change the Chart legend’s title by setting the Legend class Title property value. The Chart Legends property gets or sets a LegendCollection object that is used to store al...

How to show or hide chart legend in asp.net

Show or hide the Chart legend 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 show or hide (enable or disable) the Chart legend programmatically. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will change the Chart legend’s visibility by setting the Legend class Enabled property value. The Chart Legends property gets or sets a LegendCollection object that is u...

asp.net - How to change chart legend maximum auto size

Change the Chart legend maximum auto size 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 legend maximum auto size programmatically. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will set or change the Chart legend’s maximum auto-size by setting the Legend class MaximumAutoSize property value. The Chart Legends property gets or sets a LegendCollection object ...

asp.net - How to change chart legend style programmatically

Change the Chart legend style 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 legend style programmatically. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will set or change the Chart legend’s default style by setting the Legend class LegendStyle property value. The Chart Legends property gets or sets a LegendCollection object that is used to...

asp.net - How to change a chart legend text color

Change a Chart legend’s text color 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 a Chart legend’s text color. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will change the legend text color by changing its ForeColor property value. The Chart Legends property gets or sets a LegendCollection object that is used to store all Legend objects used by the Chart control. This ...

How to change chart legend docking in asp.net

Change a Chart legend’s docking 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 docking of a Chart legend. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will change the Chart legend docking by setting the Legend class Docking property value. The Chart Legends property gets or sets a LegendCollection object that is used to store all Legend objects used by the Chart co...

asp.net - How to set the chart area to dock a legend

Set the chart area where a legend will be docked 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 set the ChartArea where a specified legend will be docked. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will set the chart area where the legend will be docked by setting the Legend class DockedToChartArea property value. The Chart Legends property gets or sets a LegendCollection...

asp.net - How to create a chart legend programmatically

Add a chart legend 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 create a Chart legend programmatically. Here we will use the Chart class Legends property to get the legend collection. Then we will call the LegendCollection class Add() method to create and add a new legend to the legend collection. The Chart Legends property gets or sets a LegendCollection object that is used to store all Legend objects used by the Chart control. This property value is a Legend...

asp.net - How to change chart legend alignment

Change a Chart legend’s alignment 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 a Chart legend’s alignment. Here we will use the Chart class Legends property to get the legend collection. Then we will get the specified legend instance by its id. And then we will change the Chart legend’s alignment by setting the Legend class Alignment property value. The Chart Legends property gets or sets a LegendCollection object that is used to store all Legend objects used by the Cha...