Hello there. I am very novice compared to you. As soon as I press a button in the main activty, what should I do to see the data set that I have determined before on the screen?
Thank you from now.
MainActivity code part:
btn1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mdata = new double[][]{
{3, 2, -1.97, -2.81, -0.33, 1.53, 2.04, 2-.08, -1.94, -1.42, -1.58},
{-1.77, -1.76, 1.1, 0.26, -0.72, -0.64, -3.26, -3.2, -3.1, -1.94, -1.54},
{0, 0, 0, 0, 0, -3.7, -3.7, -3.7, -3.7, 0.48, 0.48},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
};
final Camera3D camera = sciChart3DBuilder.newCamera3D().withPosition(-1300, 1300, -1300).build();
final NumericAxis3D xAxis = sciChart3DBuilder.newNumericAxis3D().withMaxAutoTicks(7).build();
final NumericAxis3D yAxis = sciChart3DBuilder.newNumericAxis3D().withVisibleRange(-4d, 4d).build();
final NumericAxis3D zAxis = sciChart3DBuilder.newNumericAxis3D().build();
final int xSize = 11;
final int zSize = 4;
final UniformGridDataSeries3D<Double, Double, Double> ds = new UniformGridDataSeries3D<>(Double.class, Double.class, Double.class, xSize, zSize);
ds.setStartX(0d);
ds.setStepX(0.09);
ds.setStartZ(0d);
ds.setStepZ(0.75);
for (int z = 0; z < zSize; z++) {
for (int x = 0; x < xSize; x++) {
ds.updateYAt(x, z, mdata[z][x]);
}
}
}
});
- MUSTAFA KELSAKA asked 3 years ago
- You must login to post comments
Please login first to submit.