Hello,
I am using StackedColumnRenderableSeries and I need annotations like in Histogram example:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
var brushes = new Brush[] { Brushes.Red, Brushes.Green, Brushes.Blue, Brushes.Cyan, Brushes.Gray };
var groups = new string[] { "Group 1", "Group 2", "Group 3" };
var datas = new Dictionary<int, double[]>()
{
{1, new double[]{5.0, 4.0, 3.0, 2.0, 1.0}},
{2, new double[]{1.0, 2.0, 3.0, 2.0, 1.0}},
{3, new double[]{1.0, 2.0, 3.0, 4.0, 5.0}}
};
var data = new XyDataSeries<int, double>[brushes.Length];
for (int i = 0; i < brushes.Length; i++)
{
data[i] = new XyDataSeries<int, double>();
}
foreach (var pair in datas)
{
for (int i = 0; i < pair.Value.Length; i++)
{
data[i].Append(pair.Key, pair.Value[i]);
}
}
for (int i = 0; i < brushes.Length; i++)
{
var renderableSeries = new StackedColumnRenderableSeries()
{
Fill = brushes[i],
DataSeries = data[i],
StackedGroupId = brushes[i].ToString(),
};
sciChart.RenderableSeries.Add(renderableSeries);
}
}
How I can add annotation for each stacked grouped column? I attached the example with my Side-By-Side chart.
Ideally, I expected the annotations to be like in attached image.
- Ivan Voyager asked 8 years ago
- last active 8 years ago
Current, I am working an WPF application which using SciChart to draw many charts including a Stacked column chart.
In my case, there are many StackedColumnRenderableSeries in a chart, one of them has less data points then others do and this chart will be rendered incorrectly in a strange way, espcially when I zoomed in and panned it.
You can get source code for my example project from attached files.
Have anybody ever got this issue before?
What is the best way to resolve it?
Thank you for your support!
- hapham.sioux asked 8 years ago
- last active 8 years ago
Hi everyone,
I have 3 series for my stacked columns chart: red, blue, green. Sci-chart draws a small line for blue series when the value is zero.
What is the recommended way to hide that line on each column?
Thanks for your support!
- Chanh Le asked 8 years ago
- last active 8 years ago