Skip to content

Commit 6d3db40

Browse files
committed
Merge readme.
2 parents 71bd55b + 846e41e commit 6d3db40

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

README.md

+22-6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ The **experimental** branch might contain new features that are still buggy. It
1111

1212
Forks, pull-requests or any other forms of contribution are **always welcome**.
1313

14+
Donations
15+
-----
16+
17+
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.
18+
19+
PayPal
20+
21+
[![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)
22+
23+
Gittip
24+
25+
<a href="https://www.gittip.com/PhilJay/">
26+
<img alt="Support via Gittip" src="https://rawgithub.com/twolfson/gittip-badge/0.2.0/dist/gittip.png"/>
27+
</a>
28+
1429
Demo
1530
-----
1631

@@ -27,7 +42,7 @@ If you are having questions or problems, feel free to contact me. Since I would
2742
- Search [**known issues**](https://github.com/PhilJay/MPAndroidChart/issues) for your problem (open and closed)
2843
- Create new issues (if your issue does not exist yet)
2944

30-
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.
45+
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.
3146

3247
Features
3348
=======
@@ -63,11 +78,11 @@ Features
6378

6479
![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/simpledesign_barchart3.png)
6580

66-
- **BarChart2D (single DataSet)**
81+
- **BarChart2D (grouped DataSets)**
6782

68-
![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/barchart2d.png)
83+
![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/groupedbarchart.png)
6984

70-
- **BarChart2D (multiple DataSets)**
85+
- **BarChart2D**
7186

7287
![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/barchart2d_multi_dataset_date1.png)
7388

@@ -116,7 +131,6 @@ or create it in code (and then **add it to a layout**):
116131

117132
- <code>setDescription(String desc)</code>: Set a description text that appears in the bottom right corner of the chart.
118133
- <code>setDescriptionTypeface(Typeface t)</code>: Sets the <code>Typeface</code> used for drawing the description text.
119-
- <code>setGraphOffsets(int left, int right, int top, int bottom)</code>: Sets the offsets of the graph in every direction, provide density pixels.
120134
- <code>setDrawYValues(boolean enabled)</code>: If set to true, the actual drawn values will be drawn next to the points, bars, or pie slices of the chart.
121135
- <code>setValuePaintColor(int color)</code>: Sets the color used for drawing the values if <code>setDrawYValues(...)</code> is enabled.
122136
- <code>setValueTypeface(Typeface t)</code>: Sets the <code>Typeface</code> used for drawing the values if <code>setDrawYValues(...)</code> is enabled.
@@ -125,19 +139,21 @@ or create it in code (and then **add it to a layout**):
125139

126140
**Getters and convenience:**
127141
- <code>public ChartData getDataCurrent()</code>: Returns the <code>ChartData</code> object the chart currently displays. It contains all information concerning the displayed values such as minimum and maximum values, value counts, value sums, ...
128-
- <code>public float getScaleX()</code>: Returns the current scale factor on the x-axis.
129142
- <code>public float getYChartMin()</code>: Returns the current minimum y-value that can be displayed by the chart - bottom line.
130143
- <code>public float getYChartMax()</code>: Returns the current maximum y-value that can be displayed by the chart - top line.
131144
- <code>public float getAverage()</code>: Returns the average value across all values the chart holds.
132145
- <code>public float getAverage(int type)</code>: Returns the average value for a specific DataSet type in the chart. This type is the type provided in the <code>DataSet</code> constructor.
133146
- <code>public PointF getCenter()</code>: Returns the center point of the chart in pixels.
147+
- <code>public Paint getPaint(int which)</code>: Returns the requested Paint object from the chart.
134148

135149

136150
**Gestures & Selecting:**
137151

138152
- <code>setTouchEnabled(boolean enabled)</code>: 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.
153+
- <code>setDragScaleEnabled(boolean enabled)</code>: Enables/disables dragging and scaling for the chart.
139154
- <code>setOnChartValueSelectedListener(OnChartValueSelectedListener l)</code>: 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.
140155
- <code>setHighlightEnabled(boolean enabled)</code>: If set to true, highlighting/selecting values is possible on the chart. Default: true.
156+
- <code>public void highlightValues(Highlight[] highs)</code>: Highlights the specified entries in the chart.
141157

142158
**Other:**
143159
- <code>saveToGallery(String title)</code>: Saves the current chart state as an image to the gallery.

0 commit comments

Comments
 (0)