本文整理了Java中com.github.mikephil.charting.components.YAxis.resetAxisMinimum()
方法的一些代码示例,展示了YAxis.resetAxisMinimum()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.resetAxisMinimum()
方法的具体详情如下:
包路径:com.github.mikephil.charting.components.YAxis
类名称:YAxis
方法名:resetAxisMinimum
暂无
代码示例来源:origin: PhilJay/MPAndroidChart
/**
* This method is deprecated.
* Use setAxisMinimum(...) / setAxisMaximum(...) instead.
*
* @param startAtZero
*/
@Deprecated
public void setStartAtZero(boolean startAtZero) {
if (startAtZero)
setAxisMinimum(0f);
else
resetAxisMinimum();
}
代码示例来源:origin: com.github.PhilJay/MPAndroidChart
/**
* This method is deprecated.
* Use setAxisMinimum(...) / setAxisMaximum(...) instead.
*
* @param startAtZero
*/
@Deprecated
public void setStartAtZero(boolean startAtZero) {
if (startAtZero)
setAxisMinimum(0f);
else
resetAxisMinimum();
}
代码示例来源:origin: WenWangAndroid/ChartManager
/**
* This method is deprecated.
* Use setAxisMinimum(...) / setAxisMaximum(...) instead.
*
* @param startAtZero
*/
@Deprecated
public void setStartAtZero(boolean startAtZero) {
if (startAtZero)
setAxisMinimum(0f);
else
resetAxisMinimum();
}
代码示例来源:origin: xiaolongonly/Ticket-Analysis
/**
* This method is deprecated.
* Use setAxisMinimum(...) / setAxisMaximum(...) instead.
*
* @param startAtZero
*/
@Deprecated
public void setStartAtZero(boolean startAtZero) {
if (startAtZero)
setAxisMinimum(0f);
else
resetAxisMinimum();
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
/**
* This method is deprecated.
* Use setAxisMinimum(...) / setAxisMaximum(...) instead.
*
* @param startAtZero
*/
@Deprecated
public void setStartAtZero(boolean startAtZero) {
if (startAtZero) {
setAxisMinimum(0f);
} else {
resetAxisMinimum();
}
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
/**
* 副图指标KDJ
*/
public void setKDJToChart() {
if (barChart != null) {
if (barChart.getBarData() != null) {
barChart.getBarData().clearValues();
}
if (barChart.getLineData() != null) {
barChart.getLineData().clearValues();
}
if (barChart.getCandleData() != null) {
barChart.getCandleData().clearValues();
}
axisLeftBar.resetAxisMaximum();
axisLeftBar.resetAxisMinimum();
axisLeftBar.setValueFormatter(new IAxisValueFormatter() {
@Override
public String getFormattedValue(float value, AxisBase axis) {
return NumberUtils.keepPrecision(value, precision);
}
});
CombinedData combinedData = barChart.getData();
combinedData.setData(new LineData(kLineData.getLineDataKDJ()));
barChart.notifyDataSetChanged();
barChart.invalidate();
}
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
/**
* 副图指标RSI
*/
public void setRSIToChart() {
if (barChart != null) {
if (barChart.getBarData() != null) {
barChart.getBarData().clearValues();
}
if (barChart.getLineData() != null) {
barChart.getLineData().clearValues();
}
if (barChart.getCandleData() != null) {
barChart.getCandleData().clearValues();
}
axisLeftBar.resetAxisMaximum();
axisLeftBar.resetAxisMinimum();
axisLeftBar.setValueFormatter(new IAxisValueFormatter() {
@Override
public String getFormattedValue(float value, AxisBase axis) {
return NumberUtils.keepPrecision(value, precision);
}
});
CombinedData combinedData = barChart.getData();
combinedData.setData(new LineData(kLineData.getLineDataRSI()));
barChart.notifyDataSetChanged();
barChart.invalidate();
}
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
/**
* 副图指标BOLL
*/
public void setBOLLToChart() {
if (barChart != null) {
if (barChart.getBarData() != null) {
barChart.getBarData().clearValues();
}
if (barChart.getLineData() != null) {
barChart.getLineData().clearValues();
}
if (barChart.getCandleData() != null) {
barChart.getCandleData().clearValues();
}
axisLeftBar.resetAxisMaximum();
axisLeftBar.resetAxisMinimum();
axisLeftBar.setValueFormatter(new IAxisValueFormatter() {
@Override
public String getFormattedValue(float value, AxisBase axis) {
return NumberUtils.keepPrecision(value, precision);
}
});
CombinedData combinedData = barChart.getData();
combinedData.setData(new CandleData(kLineData.getBollCandleDataSet()));
combinedData.setData(new LineData(kLineData.getLineDataBOLL()));
barChart.notifyDataSetChanged();
barChart.invalidate();
}
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
/**
* 副图指标MACD
*/
public void setMACDToChart() {
if (barChart != null) {
if (barChart.getBarData() != null) {
barChart.getBarData().clearValues();
}
if (barChart.getLineData() != null) {
barChart.getLineData().clearValues();
}
if (barChart.getCandleData() != null) {
barChart.getCandleData().clearValues();
}
axisLeftBar.resetAxisMaximum();
axisLeftBar.resetAxisMinimum();
axisLeftBar.setValueFormatter(new IAxisValueFormatter() {
@Override
public String getFormattedValue(float value, AxisBase axis) {
return NumberUtils.keepPrecision(value, precision);
}
});
CombinedData combinedData = barChart.getData();
combinedData.setData(new LineData(kLineData.getLineDataMACD()));
combinedData.setData(new BarData(kLineData.getBarDataMACD()));
barChart.notifyDataSetChanged();
barChart.invalidate();
}
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
/**
* 副图指标成交量
*/
public void setVolumeToChart() {
if (barChart != null) {
if (barChart.getBarData() != null) {
barChart.getBarData().clearValues();
}
if (barChart.getLineData() != null) {
barChart.getLineData().clearValues();
}
if (barChart.getCandleData() != null) {
barChart.getCandleData().clearValues();
}
axisLeftBar.resetAxisMaximum();
axisLeftBar.resetAxisMinimum();
axisLeftBar.setAxisMinimum(0);
axisLeftBar.setValueFormatter(new VolFormatter(mContext, kLineData.getAssetId()));
CombinedData combinedData = barChart.getData();
combinedData.setData(new BarData(kLineData.getVolumeDataSet()));
combinedData.setData(new LineData());
barChart.notifyDataSetChanged();
barChart.animateY(1000);
}
}
内容来源于网络,如有侵权,请联系作者删除!