0

Hi all am creating one activity to Android plot library, In this am adding simple string values using this loop

  for (int i = 0; i < 2; i++, scale *= 5) {
         series[i] = new SimpleXYSeries("S");
         populateSeries(series[i], scale);
    }

in this series values add to Androidplot lib, it is working good useing this

   mySimpleXYPlot.addSeries(series[1],
            new LineAndPointFormatter(Color.rgb(0, 50, 0), null,  null, null));

But i want to add double values in place of that series values

    for (int i = 0; i < numSamples; ++i) {
        sample[i] = Math.sin(2 * Math.PI * i / (sampleRate / freqOfTone));  
        Toast.makeText(TouchZoomExampleActivity.this, " = = > " +sample[i], Toast.LENGTH_SHORT);
    //  Log.i(" Touch zoom ===> ", "" + i + "== > "+ sample[i] );
    }

But this bouble valus not possible add my plot lib any one have idea help this one.

NagarjunaReddy
  • 8,621
  • 10
  • 63
  • 98

1 Answers1

0

Try this type of series

XYSeries series = (XYSeries) new SimpleXYSeries(Arrays.asList(new Number[] { 1, 2, 3 }),
            SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "title");
keshav
  • 3,235
  • 1
  • 16
  • 22