Hi Clare,
Yes you can modify bar colors conditionally, including trough an expression. This is generally achieved by code - the following code shows how to dynamically modify the first bar in a float bar that has a label that starts with "Market Research":
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)
{
if (context.Document.Charts.Count == 0)
return;
NChart chart = context.Document.Charts[0];
for (int i = 0; i < chart.Series.Count; i++)
{
NFloatBarSeries floatBar = chart.Series[i] as NFloatBarSeries;
if (floatBar == null)
continue;
if (floatBar.Labels[i].ToString().StartsWith("Market Research"))
{
floatBar.FillStyles[i] = new NColorFillStyle(Color.Red);
}
}
}
}
}
The coloring and condition can be passed to the code by code parameters, which in turn can contain SSRS expression. Please post a some sample data along with the desired color for further comments.
Regarding:
Also I have two category groups of data, and the outer category labels get truncated. How do I overcome this?
Can you post a screenshot?
Best Regards,
Nevron Support Team