Pre loader

Tag: area

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0 votes
7k views

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

  • Sylvain60 asked 9 years ago
  • last active 9 years ago
Showing 1 result

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies