Skip to content

Commit 1f46785

Browse files
Update README.md
1 parent 9b8977b commit 1f46785

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,66 @@ app:chart_bar_tooltip_title_text_color="@color/white" //[color] - tooltip title
101101
app:chart_bar_tooltip_title_text_family="@font/rubik_medium" //[Font] - tooltip title font family
102102
```
103103

104+
105+
### Set graph values
106+
```
107+
findViewById<PopupBarChart>(R.id.customBarchart).apply {
108+
setGraphValues(
109+
arrayListOf(
110+
GraphValue(
111+
day = 1,
112+
id = 1,
113+
progress = 30,
114+
isToday = false,
115+
showToolTip = false
116+
),
117+
GraphValue(
118+
day = 2,
119+
id = 2,
120+
progress = 70,
121+
isToday = false,
122+
showToolTip = false
123+
),
124+
GraphValue(
125+
day = 3,
126+
id = 3,
127+
progress = 100,
128+
isToday = false,
129+
showToolTip = false
130+
),
131+
GraphValue(
132+
day = 4,
133+
id = 4,
134+
progress = 0,
135+
isToday = false,
136+
showToolTip = false
137+
),
138+
GraphValue(
139+
day = 5,
140+
id = 5,
141+
progress = 50,
142+
isToday = false,
143+
showToolTip = false
144+
),
145+
GraphValue(
146+
day = 6,
147+
id = 6,
148+
progress = 50,
149+
isToday = false,
150+
showToolTip = false
151+
),
152+
GraphValue(
153+
day = 7,
154+
id = 7,
155+
progress = 25,
156+
isToday = false,
157+
showToolTip = false
158+
),
159+
)
160+
)
161+
}
162+
```
163+
104164
# License
105165
```xml
106166
Copyright 2022 JustinGeorgeJoseph (Justin George)

0 commit comments

Comments
 (0)