This is a question related to the'gicentre' library. 'JAVA' and'ANDROID' results are different

This is a question related to the’gicentre’ library.

Hello. Thank you for your interest in my writing.
Please refer to the picture.

  1. When executed with’JAVA’, the text is written as the left standard.

  2. When executed with’ANDROID’, the text is written in the right standard.

Is there a workaround?
Is there a way to use the left standard in’ANDROID’?

Help me~.

import org.gicentre.utils.stat.*;

BarChart barChart;

void setup()
{

//fullScreen();
size(1000,600);
// textFont(createFont(“Arial”,10),10);

barChart = new BarChart(this);
barChart.setData(new float {0.76, 0.24, 0.39, 0.18, 0.20});

// Scaling
barChart.setMinValue(0);
barChart.setMaxValue(1);

// Axis appearance
textFont(createFont(“Serif”,10),10);

barChart.showValueAxis(true);
barChart.setValueFormat(“#%”);
barChart.setBarLabels(new String {“Cynthia”,“Daniel”,“Eli”,
“Fasil”,“Gertrude”});
barChart.showCategoryAxis(true);

}

// Draws the chart and a title.
void draw()
{

rectMode(CENTER); imageMode(CENTER); textAlign(RIGHT);
background(255);
textSize(30);
barChart.draw(50,50,width-50,height-100);

}

1 Like

Hi @GWAK,

Here’s a link to the GitHub issue you opened just in case the author answer :wink: :

Looks like the last issue was on Nov 4, 2018 and the others are not solved yet :thinking:

1 Like

Hi @GWAK not sure why this happening for android-mode, maybe there’s some issue with library only(not sure, haven’t used this library so far).

Did you test this sketch on Physical device or on Emulator ?

Can you try it on device having different screen resolution or size(try with larger size) with fullscreen mode?

you can see how to maintain screen compatibility on android devices

thanks,
Aditya Rana

1 Like

Even if I try various methods such as fullscreen

I don’t know what makes the right and left separate.