From: Nathaniel G. A. <nat...@ya...> - 2003-07-16 01:11:12
|
--- Mike Eggleston <mi...@mi...> wrote: > Hi, > > I'm sorry to ask this, but I need some help. > At the bottom of this message is what I have so far. > The code does plot, but the scaling is not limited to > only the numbers around the input data. The scaling > starts from zero and goes up from there. I only want > the area around the input data. This is the section from the user guide: User Defined Scale By default, the value Axis will compute a scale range that includes all points in the data set and is rounded to the power of ten specified. Make note of that last statment. If you enter a scale increment of 35 and use a rounding value of 100, your increment will become 100. The following example sets the axis to start at -2000 and go up in increments of 850. It also sets the rounding factor to the nearst 0/100 or 10 to the 0'th power, so we will see increments of 850. Had this been left at the default value, the increment would have been 900. code: AxisProperties axisProperties= new AxisProperties(); DataAxisProperties dataAxisProperties= (DataAxisProperties) axisProperties.getYAxisProperties(); dataAxisProperties.setUserDefinedScale( -2000, 850 ); dataAxisProperties.setRoundToNearest( 0 ); > Once that gets fixed I next need to overlay lines > on top of the stock bars, then I need to limit the > chart to plotting only data in a specific range at > the end of the dataset (only the most recent data), > or to through code remove the oldest datum in the > dataset as the newest datum is pushed on. Take a look at the User Guide for a Combo Chart for Lines over Bars. You could use the date set interfaces to create your own implementation, or you could simply have your own List and convert that to an array of double[][] > Can anyone help me or point me where I need to travel > to accomplish this task? > > Mike ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |