Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxudong authored Dec 21, 2017
1 parent 046ac92 commit a516904
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,26 +188,23 @@ Android and IOS have different convention:







## Data Format

- Complete Form


data : {
...
dataSets: [
{
values: [
{x: 5, y: 90},
{x: 10, y: 130},
{x: 50, y: 2000, marker: "eat more"},
{x: 80, y: 9000, marker: "eat less"}
]
},
...
{x: 10, y: 130},
{x: 50, y: 2000, marker: "eat more"},
{x: 80, y: 9000, marker: "eat less"}
]
},
...
]
}

Expand All @@ -233,10 +230,21 @@ check Example->TimeSeriesLineChart for details

## Callback

Support value selection callBack.
**Support value selection callBack.**

you can do whatever you want, even pop your own modal, or jump to another page.

**Support gesture callBack.**

check Example->MultipleChart for details.

## Direct Function Call

Support direct function call.

You can use `chart.moveViewToX(...)` or other functions directly.

check Example->MovingWindowChart for details.


## Custom Marker Content
Expand All @@ -253,11 +261,6 @@ check Example->TimeSeriesLineChart for details.

 The font is a little different in android & ios, I don't know how to configure it in js in the same way.

2. pie's entryLabelTextSize & entryLabelColor

 MpAndroidChart & Charts are dealing pie's entryLabel in a different way, currently the settings of pie's entryLabelTextSize & entryLabelColor can only work in android.


**size of chart**

you can set chart to fixed width & height, or flex:1
Expand Down

0 comments on commit a516904

Please # to comment.