This topic explains about the list of chart custom properties that are supported to render in the ASP.NET Core Report Viewer.
Set DisableLegendInteraction
custom property value as true
to stop the legend item interaction. The property value should be boolean. You can set the property value, as shown in the below.
The LegendMaxAutoSize
custom property specifies the maximum size of the legend container in the report.
You can set the LegendMaxAutoSize
property value, as shown in the below.
Preview the report and the see legend container size in chart report.
## Change chart legend shape
The LegendShape
custom property allows changing the shape of the legend in the chart report item. By default, the LegendShape
value is rectangle
.
rectangle
.circle
.seriestype
.You can set the LegendShape
property value, as shown in the below.
Preview the report and the see legend shape in chart report.
## Show or hide chart legend scroller
The EnableChartLegendScroller
custom property controls whether legend has to use scrollbar or not. 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, as shown in the below.
Preview the report and the see the legend scrollbar in chart report.
Padding can be applied to the minimum and maximum extremes of the axis range by using the XAxisRangePadding
and YAxisRangePadding
property. 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 value, as shown in the below.
Before setting the range padding, the default value will be displayed as below.
Set the padding range and see the changes in chart report as below.
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, as shown in the below.
Before setting the edge label placement, the default value will be displayed as below.
Set the edge label placement and see the changes in chart report as below.
The shape of the chart column or bar can be changed using this Drawingstyle
custom property. By default, the Drawingstyle
property value is rectangle
.
You can set the Drawingstyle
property value, as shown in the below.
Preview the report and the see the column or bar shape in chart report.
Width of the column type series can be customized by using 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, as shown in the below.
Before setting the point width, the default value will be displayed as below.
Preview the report and the see the column width in chart report.