Applies to: Nevron Chart for Reporting Services (SSRS 2005 and 2008)
How to create horizontal stacked bars and line series SSRS Chart?
You can easily create a combined horizontal stacked bars and a line series in a single chart area with the Combo chart type.
The following steps will help you to create this chart:
- In the chart designer, select the Combo Chart Type.
- From the 2D/3D Effects tab, select 2D Effects Orientation Left to Right.
- From the Data tab, edit the values and select the required series type (two Bar series and one Line series).
- From the Data tab, edit the second Bar series value:
- From the Values Grouping Editor, Options tab, select Group Mode to Stacked:
Use the following code in the Code tab of the Chart designer to modify chart Inflate Margins:
[C#]
using
System;
using
System.Drawing;
using
Nevron.GraphicsCore;
using
Nevron.Chart;
using
Nevron.ReportingServices;
namespace
MyNamespace
{
/// <summary>
/// Sample class
/// </summary>
public
class
MyClass
{
/// <summary>
/// Main entry point
/// </summary>
/// <param name="context"></param>
public
static
void
RSMain(NRSChartCodeContext context)
{
//return;
NChart chart = context.Document.Charts[0];
chart.Series[0].InflateMargins =
false
;
}
}
}
Article ID: 113, Created On: 11/5/2010, Modified: 12/1/2010