This is a question related to the’gicentre’ library.
Hello. Thank you for your interest in my writing.
Please refer to the picture.
-
When executed with’JAVA’, the text is written as the left standard.
-
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);}