Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: How to create negative values in plots axis based on achartengine lib?
    primarykey
    data
    text
    <p>I want to create XY plot with positive and negative numbers on both axys. By default achartnegine shows negative values of series but the start popint is always zero^ graph start from zero and next nubmer is something like -50, -40 etc. I have tried to avoid this but haven;t succed yet. Could you please suggest the right approach? </p> <pre><code> XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset(); dataset.addSeries(seriesXY); XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer(); //renderer.setXAxisMin(-10f); //renderer.setYAxisMin(-250f); //renderer.setBarSpacing(SPACING); //renderer.setRange(new double[] { -250d, 250d}); XYSeriesRenderer sRenderer = new XYSeriesRenderer(); sRenderer.setColor(Color.BLUE); sRenderer.setFillBelowLine(false); sRenderer.setChartValuesSpacing(SPACING); sRenderer.setFillBelowLineColor(Color.WHITE); sRenderer.setFillPoints(false); renderer.addSeriesRenderer(sRenderer); renderer.setApplyBackgroundColor(true); renderer.setBackgroundColor(Color.WHITE); renderer.setMarginsColor(Color.WHITE); renderer.setAxesColor(Color.BLACK); renderer.setXLabelsColor(Color.BLUE); renderer.setYLabelsColor(0, Color.BLUE); renderer.setXLabelsAlign(Align.RIGHT); renderer.setYLabelsAlign(Align.RIGHT); GraphicalView chartView = ChartFactory.getLineChartView( getActivity(), dataset, renderer); plot.removeAllViews(); plot.addView(chartView, new LayoutParams( LayoutParams.MATCH_PARENT, 200)); chartView.repaint(); </code></pre> <p>I use LineChartView</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload