Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Pareto chart Data

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
emersonlin Posted - 22 Jan 2015 : 23:17:59
How to know which bar on Pareto Chart the mouse clicked ,and the Data on it,include Yaxis's value and Xaxis's label value?
thanks.
2   L A T E S T    R E P L I E S    (Newest First)
emersonlin Posted - 26 Jan 2015 : 05:20:53
ok,I resolve the problem,thanks a lot!
quinncurtis Posted - 23 Jan 2015 : 09:27:00
You can used code similar to below, based on the QCSPCChart for WPF ParetoDiagram example program, (file Windows.xaml.cs) to install a mouse up event handler, and then to query the ParetoChart tooltip object for the data values.


public Window1()
{
     InitializeComponent();
     pc = new ParetoPlot(spcChart1);
     spcChart1.MouseUp +=new MouseButtonEventHandler(spcChart1_MouseUp);
     spcChart1.PreferredSize = new Size(600, 400);
}

private void spcChart1_MouseUp(Object sender, MouseButtonEventArgs e)
{
     NearestPointData npd = spcChart1.Datatooltip.GetNearestPoint();
     int barindex = npd.NearestPointIndex;
     double barYvalue = npd.NearestPoint.Y;
     double barXvalue = npd.NearestPoint.X;
     string[] labelstrings = spcChart1.XAxisLab.GetAxisLabelsStrings();
     string labelstring = labelstrings[barindex];

}

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07