I have the following data to make a line chart:
DataTable mydata = new DataTable(); // Define the columns and their names mydata.Columns.Add("Series Labels", typeof(string)); mydata.Columns.Add("63", typeof(int)); mydata.Columns.Add("125", typeof(int)); mydata.Columns.Add("250", typeof(int)); mydata.Columns.Add("500", typeof(int)); mydata.Columns.Add("1k", typeof(int)); mydata.Columns.Add("2k", typeof(int)); mydata.Columns.Add("4k", typeof(int)); // Add the rows of data mydata.Rows.Add(new Object[] { "RC 50", 70, 65, 60, 55, 50, 45, 40 }); mydata.Rows.Add(new Object[] { "RC 45", 65, 60, 55, 50, 45, 40, 35 }); mydata.Rows.Add(new Object[] { "RC 40", 60, 55, 50, 45, 40, 35, 30 }); mydata.Rows.Add(new Object[] { "RC 35", 55, 50, 45, 40, 35, 30, 25 }); mydata.Rows.Add(new Object[] { "RC 30", 50, 45, 40, 35, 30, 25, 20 }); mydata.Rows.Add(new Object[] { "RC 25", 45, 40, 35, 30, 25, 20, 15 }); mydata.Rows.Add(new Object[] { "User Input", userInput[0], userInput[1], userInput[2], userInput[3], userInput[4], userInput[5], userInput[6] }); mydata.Rows.Add(new Object[] { "Rumble Limit", speechInterferenceLine + 25, speechInterferenceLine + 20, speechInterferenceLine + 15, speechInterferenceLine + 10, null, null, null }); mydata.Rows.Add(new Object[] { "Hissy Limit", null, null, null, null, speechInterferenceLine + 3, speechInterferenceLine + -2, speechInterferenceLine - 7 }); mydata.Rows.Add(new Object[] { "Reference Line", speechInterferenceLine + 20, speechInterferenceLine + 15, speechInterferenceLine + 10, speechInterferenceLine + 5, speechInterferenceLine, speechInterferenceLine - 5, speechInterferenceLine - 10 });
Your product so nicely makes the points show up on mouse over. Is it possible to only show the "User Input" line values on mouse over?
Hello Amanda,
If I understand you correct you need to hide all tooltips from your chart except the ones related to the User Input chart line. To achieve this you may use FillSceneGraph event of UltraChart. In this event you have access to all primitives of UltraChart before the chart is rendered, as well to the possibility to add your own primitives. More about FillSceneGraph event you can find following next link http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=Chart_FillSceneGraph_Event.html
Please find attached a sample solution with tooltips removed from all chart lines except the User Input one. What I did in my solution is I am finding all polylines in FillSceneGraph and if polyline is not User Input one I am removing its tooltips.
Please let me know if this is what you are looking for or if I am missing something.
Milko,
it sounds like this is exactly what I want; however, when I add the using statements you had and the code I get an error of "Infragistics.UltraChar.Core.SceneGraph does not contain definition for ofType"
Am I missing something?
Amanda
I am just checking about the progress of this issue. Let me know if you need my further assistance on it.
Thank you for using Infragistics Components.
Sincerely,
Sorry for the long delay. I was away for a few weeks. This solved my issue. I appreciate the time you took to help me.