User (Legacy) Posted September 4, 2002 Report Share Posted September 4, 2002 Hello all. I have quite the little problem here. I am creating an XY plot (where the X points are displayed as dates, Y points are numeric.) We are displaying a number of gas well process variables being retrieved from a database, each process variable per well is in its own series. (i.e. Well 1: pressure is series 1, Well 2: pressure is series 2, Well 1: temperature is series 3, Well 2: temperature is series 4). On the XY plot, Y axis one is for pressure, Y axis two is for temperature. My problem occurs when well 1 has less sample points than well 2. ChartFX adds in data points of value (0,0) for well 1 until it has as many data points as well 2, which is a big ol' problem as you can imagine. I am adding data to each series using ValueEX. I am opening the COD_VALUES and COD_XVALUES channels when adding the data points. Everything else is working great, it is just this one problem I am facing. Any help anyone can give me would be very appreciated. Thank you Chris Friedel chris.friedel@zedisolutions.com Link to comment Share on other sites More sharing options...
Software FX Posted September 4, 2002 Report Share Posted September 4, 2002 Set all unknown points for your "smaller" series to CHART_HIDDEN. You can do this manually (by checking the size of each series and making sure you assign CHART_HIDDEN for all unknown points) or using the COD_ALLOCHIDDEN (0x8000) in the OpenData and CloseData calls (e.g. Chart.OpenDataEx COD_VALUES Or COD_ALLOCHIDDEN). Please note that the COD_ALLOCHIDDEN flag will fill all our data buffers with CHART_HIDDEN before you assign any data so in a BIG number of points it would be more efficient if you assign the hidden points manually. -- Regards, JC Software FX Support "Chris Friedel" <chris.friedel@zedisolutions.com> wrote in message news:ZSijveFVCHA.1284@webserver1.softwarefx.com... > Hello all. > > I have quite the little problem here. I am creating an XY plot (where the X > points are displayed as dates, Y points are numeric.) > > We are displaying a number of gas well process variables being retrieved > from a database, each process variable per well is in its own series. (i.e. > Well 1: pressure is series 1, Well 2: pressure is series 2, Well 1: > temperature is series 3, Well 2: temperature is series 4). > > On the XY plot, Y axis one is for pressure, Y axis two is for temperature. > > My problem occurs when well 1 has less sample points than well 2. ChartFX > adds in data points of value (0,0) for well 1 until it has as many data > points as well 2, which is a big ol' problem as you can imagine. > > I am adding data to each series using ValueEX. > > I am opening the COD_VALUES and COD_XVALUES channels when adding the data > points. > > Everything else is working great, it is just this one problem I am facing. > Any help anyone can give me would be very appreciated. > > Thank you > > Chris Friedel > chris.friedel@zedisolutions.com > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.