I have tried creating a StackedAreaSeries chart on a TimeXAxis.
Firstly, if I declare the series with ShowDefaultTooltips = true, and then add the stacks to the series, the tooltips do not appear. I have to set this property after adding the series. This seems like a bug to me.
Secondly, the tooltips only display values for the last series added. If I change the X axis to a CategoryXAxis instead of a TimeXAxis, the tooltips show correctly for each series. This seems like another bug.
Am I doing something incorrectly?
DataTable dt1 = new DataTable(); dt1.Columns.Add("Date", typeof(DateTime)); dt1.Columns.Add("Series 1", typeof(int)); dt1.Columns.Add("Series 2", typeof(int)); dt1.Rows.Add(new object[] { new DateTime(2021, 1, 1), 1, 4 }); dt1.Rows.Add(new object[] { new DateTime(2021, 1, 2), 2, 4 }); dt1.Rows.Add(new object[] { new DateTime(2021, 1, 6), 3, 2 }); dt1.Rows.Add(new object[] { new DateTime(2021, 1, 15), 4, 2 }); dt1.Rows.Add(new object[] { new DateTime(2021, 2, 1), 5, 3 }); dt1.Rows.Add(new object[] { new DateTime(2021, 2, 3), 4, 4 }); // Time Axis - we only see tooltips on series 1 var xAxis = new TimeXAxis() { DataSource = dt1, DateTimeMemberPath = "Date", LabelsVisible = true, }; //// Category Axis - we see tooltips on both series //var xAxis = new CategoryXAxis() //{ // DataSource = dt1, // Label = "Date", // LabelsVisible = true //}; var yAxis = new NumericYAxis(); this.ultraDataChart1.Axes.Add(xAxis); this.ultraDataChart1.Axes.Add(yAxis); var seriesStacked = new StackedAreaSeries() { XAxis = xAxis, YAxis = yAxis, DataSource = dt1, //ShowDefaultTooltip = true }; var seriesFragment1 = new StackedFragmentSeries()// StepLineSeries() { ValueMemberPath = "Series 1", Title = "S1" }; seriesStacked.Series.Add(seriesFragment1); var seriesFragment2 = new StackedFragmentSeries() { ValueMemberPath = "Series 2", Title = "S2" }; seriesStacked.Series.Add(seriesFragment2); seriesStacked.ShowDefaultTooltip = true; this.ultraDataChart1.Series.Add(seriesStacked);
Lastly, your tags selection code in this forum is crazily frustrating - the dropdown often doesn't clear, making it impossible to continue (because it hides the I'm not a robot checkbox). I'm using latest Chrome.
Thank you.
Also, regarding my second point, I found the answer to this in your Chart Navigation sample. I just had to set chart.DefaultInteraction = Interaction.DragPan.
Btw, I've noticed that several of your samples have the wrong C# code on them, this being one. The VB code is correct, but the C# code is for a different sample.
Hello Campbell,
I am able to reproduce both the issues you described in your initial post and logged into our internal system with id 272753.I have opened a private case for you so that I can link the development issue. This way you will be notified automatically when the dev issue is updated. The case number is CAS-212038-J1T4N9. You will see it located here: www.infragistics.com/.../support-activity
Let me know if you have any questions regarding this matter.
Also, to save posting a new topic, I'll ask here. Re this: https://es.infragistics.com/help/winforms/datachart-navigating-chart-using-moue-and-keyboardIs there any way to change these settings? E.g. I'd like to pan with the left mouse button without having to hold Shift, and to make Area Zoom a right-mouse-button only feature, as I think this would be more intuitive.