You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-6
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,21 @@ The **experimental** branch might contain new features that are still buggy. It
11
11
12
12
Forks, pull-requests or any other forms of contribution are **always welcome**.
13
13
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.
@@ -116,7 +131,6 @@ or create it in code (and then **add it to a layout**):
116
131
117
132
- <code>setDescription(String desc)</code>: Set a description text that appears in the bottom right corner of the chart.
118
133
- <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.
120
134
- <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.
121
135
- <code>setValuePaintColor(int color)</code>: Sets the color used for drawing the values if <code>setDrawYValues(...)</code> is enabled.
122
136
- <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**):
125
139
126
140
**Getters and convenience:**
127
141
- <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.
129
142
- <code>public float getYChartMin()</code>: Returns the current minimum y-value that can be displayed by the chart - bottom line.
130
143
- <code>public float getYChartMax()</code>: Returns the current maximum y-value that can be displayed by the chart - top line.
131
144
- <code>public float getAverage()</code>: Returns the average value across all values the chart holds.
132
145
- <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.
133
146
- <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.
134
148
135
149
136
150
**Gestures & Selecting:**
137
151
138
152
- <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.
139
154
- <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.
140
155
- <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.
141
157
142
158
**Other:**
143
159
- <code>saveToGallery(String title)</code>: Saves the current chart state as an image to the gallery.
0 commit comments