com.github.mikephil.charting.utils.ValueFormatter Java Examples

The following examples show how to use com.github.mikephil.charting.utils.ValueFormatter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Chart.java    From Notification-Analyser with MIT License 5 votes vote down vote up
/**
 * Sets the formatter to be used for drawing the values inside the chart. If
 * no formatter is set, the chart will automatically determine a reasonable
 * formatting (concerning decimals) for all the values that are drawn inside
 * the chart. Set this to NULL to re-enable auto formatting.
 * 
 * @param f
 */
public void setValueFormatter(ValueFormatter f) {
    mValueFormatter = f;

    if (f == null)
        mUseDefaultFormatter = true;
    else
        mUseDefaultFormatter = false;
}
 
Example #2
Source File: Chart.java    From Notification-Analyser with MIT License 2 votes vote down vote up
/**
 * Returns the formatter used for drawing the values inside the chart.
 * 
 * @return
 */
public ValueFormatter getValueFormatter() {
    return mValueFormatter;
}