Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
How can you turn off some of the mouse over points in line chart?
posted

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?

Parents
  • 21795
    Offline posted

    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.


    CAS-142274-X4J0H9.zip
Reply Children