我一直想弄清楚并阅读过很多帖子。但是我无法在MPAndroid的条形图中为xaxis设置标签。目前它显示了酒吧的位置。
答案 0 :(得分:1)
如果没有您的工作样本很难回答,试试这个,它可能会对您有所帮助
<section class="container">
<form id="myform " class="Form" method="post" action="Cus_Account.php?c_id=<?php echo $c_id ?>" accept-charset="utf-8">
<!-- <div id="first">-->
<input type="text" id="fname" name="fname" value="<?php echo $c_fname; ?>" required>
<input type="text" id="lname" name="lname" required>
<input type="text" id="email" name="email" value="<?php echo $_SESSION['Cus_Email']; ?>" required>
<input type="number" id="phone" name="phone" required>
<input type="submit" name="Update" value="Update">
<br>
</form>
答案 1 :(得分:0)
步骤2:之后如果你有arraylist数据字符串。然后启动循环 将所有字符串添加到x轴值中,如下面的代码
for (int i = 0; i < xdata.size(); i++)
{
* xaxis0.add(i, xdata.get(i).get("date"));
int data222 = Integer.parseInt(str);
BarEntry v1e11 = new BarEntry(data222, i);
}
BarDataSet barDataSet1 = new BarDataSet(valueSet1, "Top 5 deals");
barDataSet1.setColors(whitecolors);
barDataSet1.setHighLightColor(Color.GREEN);
barDataSet1.setBarSpacePercent(60f);
barDataSet1.setValueTextColor(Color.WHITE);
dataSets = new ArrayList<>();
dataSets.add(barDataSet1);
*BarData data11 = new BarData(xaxis0, dataSets);
data11.setValueFormatter(new LargeValueFormatter());
data11.setGroupSpace(100f);
holder.chart.setData(data11);
那是......