diff --git a/README.md b/README.md index 207cada942..3d01f9ba78 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,21 @@ The **experimental** branch might contain new features that are still buggy. It Forks, pull-requests or any other forms of contribution are **always welcome**. +Donations +----- + +If you would like to support this project's further development, the creator of this project or the continuous maintenance of this project, **feel free to donate**. Your donation is highly appreciated. + +PayPal + +[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EGBENAC5XBCKS) + +Gittip + + + Support via Gittip + + Demo ----- @@ -27,7 +42,7 @@ If you are having questions or problems, feel free to contact me. Since I would - Search [**known issues**](https://github.com/PhilJay/MPAndroidChart/issues) for your problem (open and closed) - Create new issues (if your issue does not exist yet) -Please let me know via e-mail that you have opened a stackoverflow question so that I can get to answering it right away. Thank you. +You can let me know via e-mail that you have opened a stackoverflow question so that I might get to answering it more quickly. Thank you. Features ======= @@ -63,11 +78,11 @@ Features ![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/simpledesign_barchart3.png) - - **BarChart2D (single DataSet)** + - **BarChart2D (grouped DataSets)** -![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/barchart2d.png) +![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/groupedbarchart.png) - - **BarChart2D (multiple DataSets)** + - **BarChart2D** ![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/barchart2d_multi_dataset_date1.png) @@ -116,7 +131,6 @@ or create it in code (and then **add it to a layout**): - setDescription(String desc): Set a description text that appears in the bottom right corner of the chart. - setDescriptionTypeface(Typeface t): Sets the Typeface used for drawing the description text. - - setGraphOffsets(int left, int right, int top, int bottom): Sets the offsets of the graph in every direction, provide density pixels. - setDrawYValues(boolean enabled): If set to true, the actual drawn values will be drawn next to the points, bars, or pie slices of the chart. - setValuePaintColor(int color): Sets the color used for drawing the values if setDrawYValues(...) is enabled. - setValueTypeface(Typeface t): Sets the Typeface used for drawing the values if setDrawYValues(...) is enabled. @@ -125,19 +139,21 @@ or create it in code (and then **add it to a layout**): **Getters and convenience:** - public ChartData getDataCurrent(): Returns the ChartData object the chart currently displays. It contains all information concerning the displayed values such as minimum and maximum values, value counts, value sums, ... -- public float getScaleX(): Returns the current scale factor on the x-axis. - public float getYChartMin(): Returns the current minimum y-value that can be displayed by the chart - bottom line. - public float getYChartMax(): Returns the current maximum y-value that can be displayed by the chart - top line. - public float getAverage(): Returns the average value across all values the chart holds. - public float getAverage(int type): Returns the average value for a specific DataSet type in the chart. This type is the type provided in the DataSet constructor. - public PointF getCenter(): Returns the center point of the chart in pixels. +- public Paint getPaint(int which): Returns the requested Paint object from the chart. **Gestures & Selecting:** - setTouchEnabled(boolean enabled): If set to ture, touch gestures (such as scaling and dragging) will be possible on the chart. NOTE: If touch-gestures are disabled, highlighting on touch is disabled as well. Default: true. + - setDragScaleEnabled(boolean enabled): Enables/disables dragging and scaling for the chart. - setOnChartValueSelectedListener(OnChartValueSelectedListener l): Sets a selection-listener to the chart that will generate callbacks when values are selected or unselected. The callback contains the selected values and their indices. - setHighlightEnabled(boolean enabled): If set to true, highlighting/selecting values is possible on the chart. Default: true. + - public void highlightValues(Highlight[] highs): Highlights the specified entries in the chart. **Other:** - saveToGallery(String title): Saves the current chart state as an image to the gallery.