Hi Bob,
For this requirement you will need to set the Data Label Style Format to: <cumulative>
Attached you can find the modified template file and here is the result:
The following custom code shows how you can achieve this:
using System;
using System.Drawing;
using Nevron.GraphicsCore;
using Nevron.Chart;
using Nevron.ReportingServices;
namespace MyNamespace
{
///
/// Sample class
///
public class MyClass
{
///
/// Main entry point
///
///
public static void RSMain(NRSChartCodeContext context)
{
if (context.Document.Charts.Count == 0)
return;
// get the first chart in the document
NChart chart = context.Document.Charts[0];
if (chart.Series.Count == 0)
return;
// get the first Area series in the chart
NSeries series0 = chart.Series[0] as NSeries;
if (series0 == null)
return;
// get the second Area series in the chart
NSeries series1 = chart.Series[1] as NSeries;
if (series1 == null)
return;
// get the third Area series in the chart
NSeries series2 = chart.Series[2] as NSeries;
if (series2 == null)
return;
series0.DataLabelStyle.Format = "<value>";
series1.DataLabelStyle.Format = "<cumulative>";
series2.DataLabelStyle.Format = "<cumulative>";
}
}
}
Best Regards,
Nevron Support Team