Commit graph

2062 commits

Author SHA1 Message Date
Philipp Jahoda
12b4351d0c
Update README.md 2019-04-07 16:27:59 +02:00
Philipp Jahoda
adb56e75bd
Update README.md 2019-04-07 16:20:14 +02:00
Philipp Jahoda
e95c1eb26a
Update README.md 2019-03-20 17:56:58 +01:00
Philipp Jahoda
0c2ac2d9cc New example app release 2019-03-16 11:53:42 +01:00
Philipp Jahoda
2058f7bf5d Minor changes to project and example 2019-03-16 11:42:04 +01:00
Philipp Jahoda
971640b29d
Update Support_help.md 2019-02-21 09:05:06 +01:00
Philipp Jahoda
7df8a4cedc
Update Feature_request.md 2019-02-21 09:04:40 +01:00
Philipp Jahoda
59028d3bf3
Update Bug_report.md 2019-02-21 09:04:28 +01:00
Philipp Jahoda
c886bb342a
Update README.md 2019-02-20 22:51:10 +01:00
almic
aea2ff3417
Add option to set minimum angles
Allows to force minimum slice angles when drawing charts, which means that any
slices with angles lower than the minimum will be drawn with the minimum angle.

When changing this setting on the fly, you have to call
`notifyDataSetChanged()` and `invalidate()` for the minimum angle to take
effect.

This only functions if all slices can be drawn with the minimum angle. For
example if a chart has 5 slices, the largest functioning minimum angle is
`72f` degrees on a 360 degree chart, or 20% of the chart's `maxAngle`.
2018-11-15 09:51:46 -07:00
almic
42cdba535f
Add Curved Slices to Pie Chart
Finally added support for rounded slices, and somewhat improved the code
for the PieChartRenderer class.
2018-11-12 10:59:48 -07:00
almic
29f4cc5c2c
Remove unnecessary API checks
Also added run configuration for the MPChartExample.
Removed deprecated Legend stuff.
2018-11-11 09:40:37 -07:00
almic
fc0e234298
Remove Deprecated Things
Long deprecated Legend constructor and positioning has been removed, it was
replaced with a new way to position the Legend.

The old Easing options have been removed now, accessing them is as easy as
removing the `EasingOption` part, such that the names look like
`Easing.Linear` or `Easing.EaseInOutQuad` now.
2018-11-07 14:52:25 -07:00
almic
e5b66192e7
New ValueFormatter
I created a simplified value formatter class, which is an abstract class rather
than an interface.

The switch was chosen because the new format has all the methods predefined
(something an interface wouldn't allow) meaning you can extend it and only
change what you want. This also means that you only need one value formatting
class for labels rather than two different classes, it just makes more sense.

Please check the method signatures to learn how to use them, I'm sure you'll
find this new format is much more customizable and faster to use.

I've made the class abstract even though there are no abstract methods or
fields, this is because it would certainly be a mistake to create a
ValueFormatter and not override any methods.

To convert existing code, just use 'extends' instead of 'implements' and change
the names to 'ValueFormatter'. You'll need to change the methods you overwrite
as well, just check the class and use the one you need.
2018-11-07 12:41:53 -07:00
Mick A
608d9e29f5
Fix link error 2018-10-30 08:59:58 -06:00
almic
9148f37f9e
Bump version to 3.1.0-alpha 2018-10-29 13:23:18 -06:00
Mick A
6ce99326ae
Merge pull request #2273 from vpop/update/unused-local
Remove unused local variable
2018-10-27 21:56:40 -06:00
Mick A
129ad15fd0
Merge pull request #2187 from vpop/update/redundant-nullcheck
Remove nullcheck for known non-null variable
2018-10-27 21:42:36 -06:00
almic
5030b36c86
More Cleanup
I've removed the realm examples, mainly because the library was buggy.
In the previous commit, I already removed the examples from the list
since they didn't add anything to the overall demonstration. I thought
that if anyone wants to use realm.io with the charts, they can see the
actual library.

The file structure has been updated to match how Android Studio does
things. Some files added way back when have been deleted as they don't
do anything but cause the linter to freak out about 'unused properties'

All 'build.gradle' files have been refreshed as well.

Small addition to the README file to add a quick way to reach sections
of the page.
2018-10-27 18:00:06 -06:00
almic
db7dda2b7e
More Linting
Lots of things in the example app are now marked with the 'final' modifier, and saveToGallery() is protected in classes that implement it. As well, new suppressions are in a few places.

NEW text is now removed completely. Looks like this has been unused for a long time and it's just stuck around anyway.
2018-10-27 14:02:04 -06:00
almic
d67ea481af
Huge Project Refresh
Before anyone freaks out, all these changes are under-the-hood, meaning that you probably won't even notice them at all.

The biggest difference is raising the minSdkVersion from 9 to 14. Recently android bumped this number interally as there are basically no devices running lower than 14 anymore. Sorry but you are just wasting your time if you are trying to support anything lower than 14 now.

The next biggest change is updating the project to the new AndroidX libraries, which changes some imports and nothing else really.

The third biggest change is fixing a few bugs in the code that cause values to be drawn even if there are none, which results in your app crashing. Surprisingly, these checks already existed in a few of the newer chart types, but most lacked this simple check.

Other than those three changes, nothing else is functionally different. Well, saving to gallery works on all charts in the example app now, and you can quickly see the code for each example in the menus.

The only real potential "breaking" change is that charts are now saved as PNGs by default instead of JPGs if you go the route of not specifying as a JPG. You may want to double check your file sizes as PNGs can be larger than low quality JPGs.

I still have more plans for simplifying the API and fixing other issues with the project, for the small few that closely pay attention to individual commits: there's going to be more soon.
2018-10-26 10:30:22 -06:00
Philipp Jahoda
20bca4a8ca
Update README.md 2018-08-26 20:31:44 +02:00
Philipp Jahoda
e2a9110d38
Update README.md 2018-08-26 20:31:00 +02:00
Philipp Jahoda
2316f8500f
Update README.md 2018-08-26 20:21:49 +02:00
Philipp Jahoda
6f0b7432ac
Update README.md 2018-08-26 20:21:19 +02:00
Philipp Jahoda
073ad3c877
Update README.md 2018-08-26 20:14:32 +02:00
Philipp Jahoda
c1f6fcebf0
Update README.md 2018-06-06 09:14:41 +02:00
Philipp Jahoda
b65ba08324
Update README.md 2018-05-15 15:57:09 +02:00
Mick A
fe7a0f8bc3
Merge pull request #4018 from RobertZagorski/feature/remove-redundant-findViewById-casts
[Enhancement] Remove redundant findViewById casts in example application
2018-05-12 21:28:06 -06:00
almic
536a35a6fd
docs(README): Update & simplify README
- Re-ordered some of the sections
- Simplified some sections
- Reformatted here and there
- Added a few emojis, how cute!

The goal of this change was to hopefully further reduce the amount of
issue support/ question spam. By moving the sections around to show the
more important parts higher up, like usage and documentation links, I
hope this will make it easier for people to find the documentation.
2018-05-10 11:03:03 -06:00
RobertZagorski
75dd04cc42 Remove redundant findViewById casts, that became obsolete after migration to API 26. 2018-05-10 08:01:03 +02:00
Mick A
1485cdc687
Merge pull request #3451 from davidgoli/add-grid-lines-on-top-of-data
Add option to draw limit lines on top of data
2018-05-09 09:12:49 -06:00
Mick A
53de181607
Merge pull request #3478 from MaximPestryakov/patch-1
Refactored LargeValueFormatter
2018-05-09 09:07:06 -06:00
Mick A
9ee3a74633
Merge pull request #4013 from RobertZagorski/bugfix/#2369-legend-offset-is-not-calculated-twice-for-line-chart
Remove mLabelRotatedHeight counted twice, when calculating legend offset
2018-05-09 08:36:07 -06:00
Mick A
73054bedc3
Merge pull request #3642 from pagrzybe/autoscale_restrictions
Option to set restrictions for Y axis autoscaling.
2018-05-09 08:29:22 -06:00
Maxim Pestryakov
5869c9de23
Fixed Javadoc 2018-05-09 16:03:48 +03:00
RobertZagorski
89436221db Remove mLabelRotatedHeight counted twice, when calculating legend offsets. (Fix for #2369).
Removed statements where completely not needed as calculating offsets is alredy done in BarLineCharBase#calculateOffsets(...)
2018-05-09 08:44:22 +02:00
Pawel Grzybek
92c14db5b4 Fixed code review comments. 2018-05-09 08:09:03 +02:00
Mick A
0b6632f2cb
Merge pull request #4008 from RobertZagorski/bugfix/#1604-update-and-reorganise--copy-data-sets-methods
Update and reorganise copy data sets methods (Fix for #1604).
2018-05-08 09:42:03 -06:00
RobertZagorski
7abc9cd669 Update and reorganise copy data sets methods (Fix for #1604).
Copying class properties is always done in protected copy method.
2018-05-08 16:19:09 +02:00
almic
9583a18b84
chore(template): Move templates to .github folder 2018-05-06 00:29:31 -06:00
almic
03c538fc34
docs(templates): Update Issue & PR templates
I've updated the issue and pull request templates, again. This time I
looked to the node.js request library for inspiration.

It's no secret that this project has been attracting a LOT of very
low-quality issues. Almost all are asking questions that can be easily
answered if the person looked at the example project or the wiki.

Specifically, the new Support_help.md file.

This file will hopefully bait these low-quality support questions and
reduce the number of opened issues regarding debugging or support
significantly.

I've updated the default ISSUE_TEMPLATE.md to be a copy of Bug_report.md
to force people to read that notice text if they decide to not choose
any of the templates.
2018-05-06 00:27:57 -06:00
Mick A
c08ec81fc0
Merge pull request #4001 from oatrice/feature/muti_gradient
[Feature] Multiple gradient color for barchart
2018-05-05 09:18:14 -06:00
Anirut Teerabut
e4ba3cdc20 - multiple gradient color 2018-05-04 04:21:26 +07:00
almic
689d484615
Delete lingering MyEasingFunction.java
I made the decision to remove this file instead of updating it, as I'm
sure most will instead prefer to look at the actual Easing class. If you
miss this example class... ¯\_(ツ)_/¯
2018-05-03 08:37:00 -06:00
Philipp Jahoda
9b9d2a68cb
Update README.md 2018-05-03 16:22:32 +02:00
Mick A
0378e763ae
Merge pull request #2856 from stephenmcbride/master
Fix for missing setters in getInstance method
2018-05-02 10:42:40 -06:00
Mick A
1ff676ecaf
Update CONTRIBUTING.md
Condensed CONTRIBUTING and added helpful reference links.

And cake!
2018-05-02 00:44:47 -06:00
Mick A
00e284c043
Update Bug_report.md
quick fix
2018-05-01 23:02:01 -06:00
Mick A
a7eb395b81
Downgrade ISSUE_TEMPLATE.md to generic issue 2018-05-01 22:59:06 -06:00