SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0
0

Hi,

I need to create a chart with areas (100%) clickable.
So I used StackedMountainRenderableSeries series.

the problem is that the graph remains flat (all lines are 0).

            <s:SciChartSurface x:Name="ChartTgt"  Grid.Column="0" s:ThemeManager.Theme="Chrome" >
            <s:SciChartSurface.XAxis>
                <s:NumericAxis  x:Name="AxeXTgt"/>
            </s:SciChartSurface.XAxis>
            <s:SciChartSurface.YAxis>
                <s:NumericAxis x:Name="AxeYTgt"/>
            </s:SciChartSurface.YAxis>
            </s:SciChartSurface>


        AxeXTgt.LabelProvider = new CustomLabelProvider(months.ToArray());
                AxeYTgt.TextFormatting = "#0'%'";
            foreach (var cat in categ)
            {
                XyDataSeries<double, double> serie = new XyDataSeries<double, double>();
                foreach (var m in months)
                    serie.Append(months.IndexOf(m), tgt.FirstOrDefault(o => o.CAT == cat && o.PERIOD == m)?.QTY ?? 0);
                ChartTgt.RenderableSeries.Add(new StackedMountainRenderableSeries { AntiAliasing = true, DataSeries = serie, SeriesColor = colors[categ.IndexOf(cat)], AreaBrush = new SolidColorBrush(colors[categ.IndexOf(cat)]), IsOneHundredPercent = true});
            }

but if I put IsOneHundredPercent false, I can see the lines.

the version of the DLL is 3.21.0.5511

Thanks

  • You must to post comments
0
0

I can test the new version.
my subscription has ended.

I try it on an another machine to see.

thanks

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.