Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dr-charts #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Improve dr-charts #19

wants to merge 3 commits into from

Conversation

jiangpeng166
Copy link

  1. because many projects have head file with name "ConStants.h", I rename it with new name "DrConstants.h"

(Mainly for MultiLineGraphView)
2. when I use this tool, I find it doesn't support negative number for yAxis, fix this issue
3. Add three more methods for protocol MultiLineGraphViewDataSource

  • (NSMutableArray *)dataForXAxisForAllLines;
    User can define the xAxis Value Array by self.
    e.g. (a line is {1,2,3}, the other is {6,7,8}, user can define the xAxis Value Array using the algorithm neeed)

  • (NSString *)customYAxisFormat:(float)yAxisValue;

  • (NSString *)customXAxisFormat:(NSString *)xAxisValue;
    User can define the formant for Axis value by self.

  1. Add more property to define the chart more flexible
    //Set step number for xAxis display value
    @Property (nonatomic) int xAixsStepNumber;
    //Set step number for yAxis display value
    @Property (nonatomic) int yAixsStepNumber;
    //Set animation duration time
    @Property (nonatomic) float animationDuration;
    //Set default min value for yAxis
    @Property (nonatomic) float yAixsDefaultMin;
    //Set default max value for yAxis
    @Property (nonatomic) float yAixsDefaultMax;
    //Set axis Line color (not same with gridLineColor)
    @Property (nonatomic, strong) UIColor *axisLineColor;

鹏姜 added 3 commits April 19, 2017 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant