Chart custom properties

Chart custom properties in the Bold Reports® ASP.NET Web Forms Report Viewer control legend interaction, legend size and shape, axis padding, label placement, and column style and width in chart report items.

How do I disable chart legend item interaction?

To disable legend item interaction in the Report Viewer, set the DisableLegendInteraction custom property value to true. The property value must be Boolean. You can set the property value. Shows configuration of disable legend interaction property in custom property dialog

How do I set the maximum size of the chart legend?

To set the maximum size of the chart legend in the Report Viewer, use the LegendMaxAutoSize custom property, which specifies the maximum size of the legend container in the report. You can set the LegendMaxAutoSize property value.

Shows configuration of legend size property in custom property dialog

Preview the report to see the legend container size in the chart report.

Preview of legend container size in chart report in Report Viewer

How do I change the chart legend shape?

To change the shape of the legend in a chart report item in the Report Viewer, set the LegendShape custom property. By default, the LegendShape value is rectangle.

  • Rectangle - legend shapes displayed in rectangle.
  • Circle - legends are displayed in circle.
  • Thumbnail - legends are displayed in seriestype.

You can set the LegendShape property value.

Shows configuration of legend shape property in custom property dialog

Preview the report to see the legend shape in the chart report.

Shows configuration of default legend shape property in custom property dialog

How do I show or hide the chart legend scroller?

To show or hide the chart legend scroller in the Report Viewer, set the EnableChartLegendScroller custom property, which controls whether the legend uses a scrollbar. The scrollbar appears depending upon size and position properties of legend. By default, the EnableChartLegendScroller value is false. You can set the EnableChartLegendScroller property value.

Shows configuration of enabling chart legend scrollbar property in custom property dialog

Preview the report to see the legend scrollbar in the chart report.

Preview of legend scrollbar in chart report in Report Viewer

How do I set range padding for the X-axis and Y-axis?

To add padding to the minimum and maximum extremes of a chart axis range in the Report Viewer, use the XAxisRangePadding and YAxisRangePadding properties. The default value isnone. Numeric axis supports the following types of padding.

Name Description
Additional Interval of the axis is added as padding to the minimum and maximum values of the range
Normal Padding is applied to the axis based on the range calculation
None Padding cannot be applied to the axis
Round Axis range is rounded to the nearest possible value divided by the interval

You can set the XAxisRangePadding and YAxisRangePadding property values.

Shows configuration of axis range padding property in custom property dialog

Before you set the range padding, the chart uses the default value.

Preview of default range padding in chart report in Report Viewer

Set the padding range to see the changes in the chart report.

Preview of legend scrollbar in chart report in Report Viewer

How do I control edge label placement on a chart axis?

To keep long axis labels from appearing partially outside the chart in the Report Viewer, set the XAxisEdgeLabelPlacement or YAxisEdgeLabelPlacement custom property. Labels with long text at the edges of an axis may appear partially outside the chart. The XAxisEdgeLabelPlacement and YAxisEdgeLabelPlacement custom property can be used to avoid the partial appearance of the labels at the corners. The default value is none. You can set the XAxisEdgeLabelPlacement property value.

Shows configuration of axis edge label placement property in custom property dialog

Before you set the edge label placement, the chart uses the default value.

Preview of default range padding in chart report in Report Viewer

Set the edge label placement to see the changes in the chart report.

Preview of legend scrollbar in chart report in Report Viewer

How do I change the drawing style of a column or bar series?

To change the shape of a chart column or bar in the Report Viewer, set the Drawingstyle custom property. By default, the Drawingstyle property value is rectangle. You can set the Drawingstyle property value.

Shows configuration of drawingstyle property in custom property dialog

Preview the report to see the column or bar shape in the chart report.

Preview of legend scrollbar in chart report in Report Viewer

How do I change the width of a column series in a chart?

To change the width of a column type series in the Report Viewer, set the Pointwidth property. Default value of Pointwidth is 0.7. Value ranges from 0 to 1. Here 1 corresponds to 100% of available width and 0 corresponds to 0% of available width. You can set the Pointwidth property value.

Shows configuration of pointwidth property in custom property dialog

Before you set the point width, the chart uses the default value.

Preview of default point width in chart report in Report Viewer

Preview the report to see the column width in the chart report.

Preview of columnwidth in chart report in Report Viewer