From: Nathaniel G. A. <nat...@ya...> - 2003-03-19 14:37:33
|
oh, i thought you were using the XY Scatter Plot in the 0.7 beta 2. a line chart y-axis would start at 0 by default if there are no negative values. The x-axis are just String Objects. If you are looking to plot x,y coordinates like the equation y=x^2, use the XY Scatter Plot in 0.7.0. If you are trying to plot label,value, you can use a Line Chart from 0.6.0 or 0.7.0. If you want zero as the first label, pass "0" as the first item in your axis labels data. --- "Andrés_A._Gómez" <aa...@av...> wrote: > In jCharts 0.6.0 the object DataAxisProperties is not present, this is > part of jCharts 0.7.0 Beta 2 ?? > > Andrés A. Gómez P. > Analista / Programador > AvanSoft S.A. > Tel: (574) + 362-19-00 Ext 121 > Cel: 310 4134348 > > -----Mensaje original----- > De: Nathaniel G. Auvil [mailto:nat...@ya...] > Enviado el: miércoles, 19 de marzo de 2003 9:00 > Para: Andris_A._Gsmez > Asunto: RE: [jCharts-users] Re: [jCharts-developers] ChartType.LINE > question > > > --- "Andrés_A._Gómez" <aa...@av...> wrote: > > Yes the graph begin out of origin, in the first xAxisLabels, but this > is > > not the origin, i need begin un the origin. > > > > The data is > > data[][] = { { 0,458,0 }, { 0,1460,2888 } } > > > > ------------------- > > |0 |458 |0 | > > ------------------- > > |0 |1460 |2888 | > > ------------------- > > the firts data is 0,0 > > > > You could try using a UserDefinedScale on the x-axis: > > DataAxisProperties dataAxisProperties = (DataAxisProperties) > axisProperties.getXAxisProperties(); > dataAxisProperties.setUserDefinedScale( 0, 600 ); > > > > > > > > ===== > My Blog: http://nathaniel-auvil.blog-city.com > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > ===== My Blog: http://nathaniel-auvil.blog-city.com __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |