The CustomAttributes object allows to specify various options for drawing a chart. Note that some properties of CustomAttributes are applicable only to certain chart types. For example, IsExploded is only applicable for the Pie and Doughnut charts.
The DataPoint and Series classes expose custom attributes via the DataPoint.CustomAttributes and Series.CustomAttributes properties. Modifying CustomAttributes for a DataPoint affects only that particular data point, but modifying CustomAttributes for a Series has effect on the whole series.
Below is the table that summarize the custom attributes (CustomAttributes properties), shows each attribute specifics and provides information about the chart types each attribute is applicable to.
|
Attribute Name
|
Description
|
Default Value
|
Limitation
|
Applicable to
|
|
BarWidthRate
|
The relative width of bars in a bar chart
|
2/3
|
The value can be between 0.0 and 1.0
|
Bar, HighLowClose, OpenHighLowClose
|
|
BubbleMaxSize
|
The maximum bubble size in pixels
|
50
|
-
|
Bubble
|
|
BubbleMinSize
|
The minimum bubble size in pixels
|
4
|
-
|
Bubble
|
|
ContourPaletteType
|
The palette type for a Contour or Surface chart
|
None
|
-
|
Contour, Surface
|
|
CurveTension
|
The curve tension
|
0.5F
|
-
|
Curve, CurveArea
|
|
DoughnutRadius
|
The relative inner radius of a Doughnut chart
|
2/3
|
The value can be between 0.0 and 1.0
|
Doughnut
|
|
ExplodedWidthRate
|
The relative width by which the Pie or Doughnut chart is exploded
|
0.1
|
The value can be between 0.0 and 1.0
|
Pie, Doughnut
|
|
GanttHeightRate
|
The relative height of the bars in a Gantt chart
|
2/3
|
The value must be between 0.0 and 1.0
|
Gantt
|
|
HorizontalLineSize
|
The length of a horizontal line (in pixels) connecting the data point label with a Pie or Doughnut chart
|
-1
|
-
|
Pie, Doughnut
|
|
IsAllExploded
|
Whether the whole Pie or Doughnut chart is exploded
|
false
|
-
|
Pie, Doughnut
|
|
IsArea100PercentStacked
|
Whether the series on an Area chart with multiple series are stacked and take 100% of the chart height
|
false
|
-
|
Area with multiple series
|
|
IsAreaStacked
|
Whether the series on an Area chart with multiple series are stacked
|
false
|
-
|
Area with multiple series
|
|
IsAreaWithInitialValues
|
Whether the areas on an Area chart with multiple series do have initial values
|
false
|
-
|
Area with multiple series
|
|
IsAreaXGridVisible
|
Whether the X grid for an Area chart is visible
|
false
|
-
|
Area
|
|
IsAreaYGridVisible
|
Whether the Y grid for an Area chart is visible
|
false
|
-
|
Area
|
|
IsBarCone
|
Whether the bars on a Bar chart are drawn as cones
|
false
|
-
|
Bar
|
|
IsBarCylinder
|
Whether the bars on a Bar chart are drawn as cylinders
|
false
|
-
|
Bar
|
|
IsBarHorizontal
|
Whether the bars on a Bar chart are horizontal or vertical
|
false
|
-
|
Bar
|
|
IsBarSideBySide
|
Whether the bars in a Bar chart with multiple series are side by side
|
false
|
-
|
Bar with multiple series
|
|
IsBarStacked
|
Whether the bars in a Bar chart with multiple series are stacked
|
false
|
-
|
Bar with multiple series
|
|
IsContourGridVisible
|
Whether the grid for a Contour or Surface chart is visible
|
false
|
-
|
Contour, Surface
|
|
IsExploded
|
Whether a particular data point on of a Pie or Doughnut chart is exploded
|
|