Coder Social home page Coder Social logo

Comments (1)

lecho avatar lecho commented on August 24, 2024 5

Hi, check these methods from ChartData interface:

/**
* Returns color used to draw value label text.
*/
public int getValueLabelTextColor();

/**
* Set value label text color, by default Color.WHITE.
*/
public void setValueLabelsTextColor(int labelsTextColor);

/**
* Returns text size for value label in SP units.
*/
public int getValueLabelTextSize();

/**
* Set text size for value label in SP units.
*/
public void setValueLabelTextSize(int labelsTextSize);

/**
* Returns Typeface for value labels.
* 
* @return Typeface or null if Typeface is not set.
*/
public Typeface getValueLabelTypeface();

/**
* Set Typeface for all values labels.
* 
* @param typeface
*/
public void setValueLabelTypeface(Typeface typeface);

/**
* @see #setValueLabelBackgroundEnabled(boolean)
*/
public boolean isValueLabelBackgroundEnabled();

/**
* Set whether labels should have rectangle background. Default is true.
*/
public void setValueLabelBackgroundEnabled(boolean isValueLabelBackgroundEnabled);

/**
* @see #setValueLabelBackgroundAuto(boolean)
*/
public boolean isValueLabelBackgroundAuto();

/**
* Set false if you want to set custom color for all value labels. Default is true.
*/
public void setValueLabelBackgroundAuto(boolean isValueLabelBackgrountAuto);

/**
* @see #setValueLabelBackgroundColor(int)
*/
public int getValueLabelBackgroundColor();

/**
* Set value labels background. This value is used only if isValueLabelBackgroundAuto returns false. Default is
* green.
*/
public void setValueLabelBackgroundColor(int valueLabelBackgroundColor);

Ps. value label can have rectangle background or no background at all. If you need other shapes for labels background you will need to modify drawLabel() method in specific chart's renderer implementation.

from hellocharts-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.