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

ChartDataEntry not drawn after certain xIndex #190

Closed
DarkInsight opened this issue Jul 8, 2015 · 2 comments
Closed

ChartDataEntry not drawn after certain xIndex #190

DarkInsight opened this issue Jul 8, 2015 · 2 comments

Comments

@DarkInsight
Copy link

I have 336 chart data points, I am trying to draw a chart that disable user interaction, i.e.: users can't drag, cant scale the chart.

I noticed that the chart doesn't draw data entries after certain xIndex: in this case everything after index 245 are not drawn.

I tried stripping out the data points after index 245 and draw only them and it works.

May I know if there is a config to adjust number of data points to show on x-axis?

@DarkInsight
Copy link
Author

"0 Wed 126.190002",
"1 Wed 126.190002",
"2 Wed 126.190002",
"3 Wed 126.190002",
"4 Wed 126.190002",
"5 Wed 126.190002",
"6 Wed 126.190002",
"7 Wed 126.190002",
"8 Wed 126.190002",
"9 Wed 126.190002",
"10 Wed 126.190002",
"11 Wed 126.190002",
"12 Wed 126.190002",
"13 Wed 126.190002",
"14 Wed 126.190002",
"15 Wed 126.190002",
"16 Wed 126.190002",
"17 Wed 126.190002",
"18 Wed 126.190002",
"19 Wed 126.190002",
"20 Wed 126.190002",
"21 Wed 126.190002",
"22 Thu 126.190002",
"23 Thu 126.190002",
"24 Thu 126.190002",
"25 Thu 126.190002",
"26 Thu 126.190002",
"27 Thu 126.190002",
"28 Thu 126.190002",
"29 Thu 126.190002",
"30 Thu 126.190002",
"31 Thu 126.190002",
"32 Thu 126.190002",
"33 Thu 126.190002",
"34 Thu 126.190002",
"35 Thu 126.190002",
"36 Thu 126.190002",
"37 Thu 126.190002",
"38 Thu 126.190002",
"39 Thu 126.190002",
"40 Thu 126.190002",
"41 Thu 126.190002",
"42 Thu 126.190002",
"43 Thu 126.190002",
"44 Thu 126.190002",
"45 Thu 126.190002",
"46 Thu 126.190002",
"47 Thu 126.190002",
"48 Thu 126.190002",
"49 Thu 126.190002",
"50 Thu 126.190002",
"51 Thu 126.190002",
"52 Thu 126.190002",
"53 Thu 126.190002",
"54 Thu 126.190002",
"55 Thu 126.190002",
"56 Thu 126.190002",
"57 Thu 126.190002",
"58 Thu 126.190002",
"59 Thu 126.190002",
"60 Thu 126.190002",
"61 Thu 126.190002",
"62 Thu 126.190002",
"63 Thu 126.190002",
"64 Thu 126.190002",
"65 Thu 126.190002",
"66 Thu 126.190002",
"67 Thu 126.190002",
"68 Thu 126.190002",
"69 Thu 126.190002",
"70 Fri 126.190002",
"71 Fri 126.190002",
"72 Fri 126.190002",
"73 Fri 126.190002",
"74 Fri 126.190002",
"75 Fri 126.190002",
"76 Fri 126.190002",
"77 Fri 126.190002",
"78 Fri 126.190002",
"79 Fri 126.190002",
"80 Fri 126.190002",
"81 Fri 126.190002",
"82 Fri 126.190002",
"83 Fri 126.190002",
"84 Fri 126.190002",
"85 Fri 126.190002",
"86 Fri 126.190002",
"87 Fri 126.190002",
"88 Fri 126.190002",
"89 Fri 126.190002",
"90 Fri 126.190002",
"91 Fri 126.190002",
"92 Fri 126.190002",
"93 Fri 126.190002",
"94 Fri 126.190002",
"95 Fri 126.190002",
"96 Fri 126.190002",
"97 Fri 126.190002",
"98 Fri 126.190002",
"99 Fri 126.190002",
"100 Fri 126.190002",
"101 Fri 126.190002",
"102 Fri 126.190002",
"103 Fri 126.190002",
"104 Fri 126.190002",
"105 Fri 126.190002",
"106 Fri 126.190002",
"107 Fri 126.190002",
"108 Fri 126.190002",
"109 Fri 126.190002",
"110 Fri 126.190002",
"111 Fri 126.190002",
"112 Fri 126.190002",
"113 Fri 126.190002",
"114 Fri 126.190002",
"115 Fri 126.190002",
"116 Fri 126.190002",
"117 Fri 126.190002",
"118 Sat 126.190002",
"119 Sat 126.190002",
"120 Sat 126.190002",
"121 Sat 126.190002",
"122 Sat 126.190002",
"123 Sat 126.190002",
"124 Sat 126.190002",
"125 Sat 126.190002",
"126 Sat 126.190002",
"127 Sat 126.190002",
"128 Sat 126.190002",
"129 Sat 126.190002",
"130 Sat 126.190002",
"131 Sat 126.190002",
"132 Sat 126.190002",
"133 Sat 126.190002",
"224 Mon 126.190002",
"225 Mon 126.190002",
"226 Mon 126.190002",
"227 Mon 126.190002",
"228 Mon 126.190002",
"229 Mon 126.190002",
"230 Mon 126.190002",
"231 Mon 126.190002",
"232 Mon 126.190002",
"233 Mon 126.190002",
"234 Mon 126.190002",
"235 Mon 126.190002",
"236 Mon 126.190002",
"237 Mon 126.190002",
"238 Mon 126.190002",
"239 Mon 126.190002",
"240 Mon 126.190002",
"241 Mon 126.190002",
"242 Mon 126.190002",
"243 Mon 126.190002",
"244 Mon 126.190002",
"245 Mon 126.190002",
"246 Mon 126.190002",
"247 Mon 126.190002",
"248 Mon 126.190002",
"249 Mon 126.190002",
"250 Mon 126.190002",
"251 Mon 126.190002",
"252 Mon 126.190002",
"253 Mon 126.190002",
"254 Mon 126.190002",
"255 Mon 125.400002",
"256 Mon 125.389999",
"257 Mon 124.889999",
"258 Mon 125.680000",
"259 Mon 125.610001",
"260 Mon 126.000000",
"261 Mon 125.720001",
"262 Tue 125.730003",
"263 Tue 125.680000",
"264 Tue 125.870003",
"265 Tue 125.660004",
"266 Tue 125.519997",
"267 Tue 125.400002",
"268 Tue 125.480003",
"269 Tue 125.720001",
"270 Tue 126.000000",
"271 Tue 125.849998",
"272 Tue 125.849998",
"273 Tue 125.849998",
"274 Tue 125.849998",
"275 Tue 125.849998",
"276 Tue 125.849998",
"277 Tue 125.849998",
"278 Tue 125.849998",
"279 Tue 125.849998",
"280 Tue 125.849998",
"281 Tue 125.849998",
"282 Tue 125.849998",
"283 Tue 125.849998",
"284 Tue 125.849998",
"285 Tue 125.849998",
"286 Tue 125.849998",
"287 Tue 125.849998",
"288 Tue 125.849998",
"289 Tue 125.849998",
"290 Tue 125.849998",
"291 Tue 125.849998",
"292 Tue 125.849998",
"293 Tue 125.849998",
"294 Tue 125.849998",
"295 Tue 125.849998",
"296 Tue 125.849998",
"297 Tue 125.849998",
"298 Tue 125.849998",
"299 Tue 125.849998",
"300 Tue 125.849998",
"301 Tue 125.849998",
"302 Tue 125.849998",
"303 Tue 125.849998",
"304 Tue 125.849998",
"305 Tue 125.849998",
"306 Tue 125.849998",
"307 Tue 125.849998",
"308 Tue 125.849998",
"309 Tue 125.849998",
"310 Wed 125.849998",
"311 Wed 125.849998",
"312 Wed 125.849998",
"313 Wed 125.849998",
"314 Wed 125.849998",
"315 Wed 125.849998",
"316 Wed 125.849998",
"317 Wed 125.849998",
"318 Wed 125.849998",
"319 Wed 125.849998",
"320 Wed 125.849998",
"321 Wed 125.849998",
"322 Wed 125.849998",
"323 Wed 125.849998",
"324 Wed 125.849998",
"325 Wed 125.849998",
"326 Wed 125.849998",
"327 Wed 125.849998",
"328 Wed 125.849998",
"329 Wed 125.849998",
"330 Wed 125.849998",
"331 Wed 125.849998",
"332 Wed 125.849998",
"333 Wed 125.849998",
"334 Wed 125.849998",
"335 Wed 125.849998"

These are my data points in this format " ", everything after index 245 are not drawn

@DarkInsight
Copy link
Author

I have found out the cause of the bug, it is because I skipped x value for which the y value is null.

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

No branches or pull requests

1 participant