Commit graph

1896 commits

Author SHA1 Message Date
PhilJay
557e55653b Remove line width minimum constraint 2017-03-23 16:15:16 +01:00
PhilJay
b564704b82 Updating versions 2017-03-23 16:13:21 +01:00
Philipp Jahoda
6df13dd66e Update README.md 2017-03-15 15:55:23 +01:00
Philipp Jahoda
2eb12901a9 Update README.md 2017-03-14 10:39:45 +01:00
Philipp Jahoda
993d273a52 Update README.md 2017-03-14 10:39:05 +01:00
Daniel Cohen Gindi
0c919ab02d Consider isEnabled in more axis rendering cases 2017-02-22 17:29:33 +02:00
Daniel Cohen Gindi
493e3d238d Merge pull request #2463 from maheshgaya/master
Fix: typo for October
2017-02-21 16:39:50 +02:00
Daniel Cohen Gindi
3ec493fc0c Merge pull request #2414 from Ewg777/patch-1
Fixed docs typo in AxisBase.java
2017-02-21 16:39:27 +02:00
Daniel Cohen Gindi
31b60225d0 Merge pull request #2622 from patrick-iv/fix_circle_inherit_alpha
Fix circles inherit alpha #2620
2017-02-21 16:38:39 +02:00
Daniel Cohen Gindi
886cc9f85d Merge pull request #2621 from patrick-iv/fix_default_text_size
Fix for default text size being set in PX instead of DP
2017-02-21 16:36:02 +02:00
Daniel Cohen Gindi
528e2e8d61 Merge pull request #2811 from travisfw/master
fix tests for java executable location in gradlew to be compatible with bash 4.3.42
2017-02-21 16:34:00 +02:00
Daniel Cohen Gindi
28166a01d1 Merge pull request #2814 from travisfw/utf8-javadoc
Set javadoc character encoding to utf8
2017-02-21 16:33:11 +02:00
Daniel Cohen Gindi
a5e0a9b86c Moved auto scale before render of axis lines
https://github.com/danielgindi/Charts/pull/2177
2017-02-21 14:24:13 +02:00
Daniel Cohen Gindi
94957fad33 Improved feb29 formula 2017-02-20 13:55:16 +02:00
Daniel Cohen Gindi
23e0178dbb Merge pull request #2825 from danielgindi/icons
Entry cons in all chart types
2017-02-20 13:45:21 +02:00
Daniel Cohen Gindi
144af7b295 Added examples for icon entries 2017-02-20 13:33:53 +02:00
Daniel Cohen Gindi
a02e108f46 Implemented icon support 2017-02-20 13:33:39 +02:00
travisfw
749827798b fix https://github.com/PhilJay/MPAndroidChart/issues/2813 2017-02-14 11:07:10 -08:00
travisfw
ed618084f9 fix tests for java executable location. bug #2805
https://github.com/PhilJay/MPAndroidChart/issues/2805
2017-02-13 14:02:55 -08:00
Patrick Ivarsson
30a331781f Fix circles inherit alpha (Fixes #2620)
ISSUE:
When using multiple LineDataSets like the follows:

    int solidColor = 0xFFFF00FF;
    dataSet.setColor(solidColor);
    dataSet.setCircleColor(solidColor);

    int semiTransparentColor = 0x8A000000;
    fadedSet.setColor(semiTransparentColor);

    LineData data = new LineData(dataSet, fadedSet);

the circles in 'dataSet' will rendered with the alpha from
fadedSet (0x8A).

The reason for this is that mRenderPaint is not reset properly
before drawing the circles. The first time drawCircles is called
the imageCache.fill(...) method is used where the color is set by
mRenderPaint.setColor(set.getCircleColor(i)), restoring the alpha
to 0xFF. The second time homever, imageCache.fill(...) is not called
which means that mRenderPaint will use it's old color/alpha,
which in this case is from fadedSet.

TEST INFO:
To trigger the issue, add the following to LineChartActivity1:

    final ArrayList<Entry> fadedEntries = new ArrayList<>();
    for (int i = 0; i < count; i++) {

        float val = (float) (Math.random() * range) + 3;
        fadedEntries.add(new Entry(i, val));
    }
    final LineDataSet fadedDateSet = new LineDataSet(fadedEntries, "Faded");
    fadedDateSet.setColor(0x42000000);

    dataSets.add(fadedDateSet); // add the datasets

and launch the first item in the example app.

SOLUTION:
This commit replaces mRenderPaint with null when drawing the circle
bitmap. If circleColor has been defined with a semi-transparent
color, it will be drawn that way in the cached bitmap, hence the the
bitmap itself does not need to be drawn with an alpha.
2016-12-23 15:01:23 +01:00
Patrick Ivarsson
6966b8117e Fix for default text size being set in PX instead of DP
The default text size in ComponentBase was defined as 10 pixels
instead of 10dp, which causes tiny text and does not reflect
the javadoc and the general behavior of setTextSize(...)
2016-12-23 12:38:42 +01:00
Daniel Cohen Gindi
ccf6b7e3b1 Correctly position 0 in stacked bar 2016-12-19 22:50:08 +02:00
Daniel Cohen Gindi
d5e5ec3a92 resetZoom() 2016-12-19 22:06:41 +02:00
Daniel Cohen Gindi
a934501315 Gradle updates 2016-12-19 21:56:16 +02:00
Daniel Cohen Gindi
34e7f44979 drawBottomYLabelEntryEnabled 2016-12-19 21:56:03 +02:00
Philipp Jahoda
8abe7e84ad Update README.md 2016-12-10 10:35:56 +01:00
Philipp Jahoda
9aaa3328f0 Update README.md 2016-12-10 10:35:28 +01:00
Philipp Jahoda
345b4bc97e Update README.md 2016-11-19 10:01:13 +01:00
PhilJay
08f295eae1 Upgrade manifest 2016-11-17 19:01:53 +01:00
PhilJay
a7fd778fc8 Upgrade version 2016-11-17 19:01:21 +01:00
Daniel Cohen Gindi
2e80fada31 Fixed a bug where the mod-360 bypass draws a full-circle for 0 slices. 2016-11-16 12:04:57 +02:00
Daniel Cohen Gindi
4cb83a7b91 Added IndexAxisValueFormatter, to allow for easy x-axis labels like MPAndroidChart 2.0 2016-11-16 11:19:50 +02:00
Daniel Cohen Gindi
0818d766db Fixed EPSILON. (Closes #2432)
Closes #2424
Closes #2394
Closes #2393
Closes #2385
2016-11-16 11:01:34 +02:00
Daniel Cohen Gindi
ee020bba67 Gradle updates 2016-11-16 11:01:34 +02:00
Mahesh Gaya
262d877b9f Fix: typo for October 2016-11-12 12:23:36 -06:00
Daniel Cohen Gindi
3928e285ae Fixed double calculation of xAxis spacing 2016-11-08 17:25:19 +02:00
Daniel Cohen Gindi
00f36054c7 Fixed weird glitch in mixed (pos/neg) stacked bars highlight
https://github.com/danielgindi/Charts/pull/1744
https://github.com/danielgindi/Charts/issues/1726
2016-10-31 15:35:16 +02:00
Daniel Cohen Gindi
3a879e9402 Added missing isDrawBordersEnabled getter 2016-10-31 13:34:22 +02:00
Daniel Cohen Gindi
8045d64260 Added clipValuesToContent property for clipping values 2016-10-31 13:32:47 +02:00
Daniel Cohen Gindi
6a5580b101 Renamed new property getter 2016-10-31 13:26:25 +02:00
Daniel Cohen Gindi
70691bea41 Fixed glitch in clipping rects.
It's the Android's renderer's bug.
When specifying exact clipping rects,
  they are clipping more than they should!
So drawing a thin 1px line on the edge of a clipping rect fail.
Instead of insetting by half the line width, inset by full line width.
2016-10-31 13:10:11 +02:00
Daniel Cohen Gindi
49b4d1a96b Bugfix: Corrected clipRect on the proper rect variable 2016-10-31 12:09:49 +02:00
Daniel Cohen Gindi
fb8094e9f2 Make automatically disabling slice-spacing an opt-in feature 2016-10-31 11:45:05 +02:00
Evgeniy
bc13bc2c17 Update AxisBase.java
Mistake fixed
2016-10-27 08:45:39 +03:00
PhilJay
9a19bf6670 Migrate to Realm v2.0.2, fix example 2016-10-23 00:02:49 +02:00
PhilJay
9b7cffa274 Move to Realm v2.0.2, update example 2016-10-22 23:54:31 +02:00
Philipp Jahoda
49b61e92a4 Update README.md 2016-10-22 15:54:26 +02:00
Philipp Jahoda
3ce2016048 Update README.md 2016-10-19 23:09:03 +02:00
Philipp Jahoda
b618524a19 Update README.md 2016-10-19 23:03:54 +02:00
Daniel Cohen Gindi
810c99c579 Make highlightFullBarEnabled feature work again 2016-10-19 10:08:42 +03:00