@@ -93,7 +93,7 @@ public int getViewTypeCount() {
9393 *
9494 * @return
9595 */
96- private ChartData generateDataLine (int cnt ) {
96+ private LineData generateDataLine (int cnt ) {
9797
9898 ArrayList <Entry > e1 = new ArrayList <Entry >();
9999
@@ -116,10 +116,8 @@ private ChartData generateDataLine(int cnt) {
116116 d2 .setLineWidth (3f );
117117 d2 .setCircleSize (5f );
118118 d2 .setHighLightColor (Color .rgb (244 , 117 , 117 ));
119- d2 .setColor (getResources ().getColor (R .color .vordiplom_1 ));
120- d2 .setCircleColor (getResources ().getColor (R .color .vordiplom_1 ));
121-
122- // d.setColors(ColorTemplate.VORDIPLOM_COLORS, getApplicationContext());
119+ d2 .setColor (ColorTemplate .VORDIPLOM_COLORS [0 ]);
120+ d2 .setCircleColor (ColorTemplate .VORDIPLOM_COLORS [0 ]);
123121
124122 ArrayList <LineDataSet > sets = new ArrayList <LineDataSet >();
125123 sets .add (d1 );
@@ -134,7 +132,7 @@ private ChartData generateDataLine(int cnt) {
134132 *
135133 * @return
136134 */
137- private ChartData generateDataBar (int cnt ) {
135+ private BarData generateDataBar (int cnt ) {
138136
139137 ArrayList <BarEntry > entries = new ArrayList <BarEntry >();
140138
@@ -144,7 +142,7 @@ private ChartData generateDataBar(int cnt) {
144142
145143 BarDataSet d = new BarDataSet (entries , "New DataSet " + cnt );
146144 d .setBarSpacePercent (20f );
147- d .setColors (ColorTemplate .VORDIPLOM_COLORS , getApplicationContext () );
145+ d .setColors (ColorTemplate .VORDIPLOM_COLORS );
148146 d .setHighLightAlpha (255 );
149147
150148 BarData cd = new BarData (getMonths (), d );
@@ -156,7 +154,7 @@ private ChartData generateDataBar(int cnt) {
156154 *
157155 * @return
158156 */
159- private ChartData generateDataPie (int cnt ) {
157+ private PieData generateDataPie (int cnt ) {
160158
161159 ArrayList <Entry > entries = new ArrayList <Entry >();
162160
@@ -168,7 +166,7 @@ private ChartData generateDataPie(int cnt) {
168166
169167 // space between slices
170168 d .setSliceSpace (5f );
171- d .setColors (ColorTemplate .VORDIPLOM_COLORS , getApplicationContext () );
169+ d .setColors (ColorTemplate .VORDIPLOM_COLORS );
172170
173171 PieData cd = new PieData (getQuarters (), d );
174172 return cd ;
0 commit comments