android - How to create a graph with 2 complimentary seriesItem using DecoView lib -


i trying create wheel graph shows 2 complementary seriesitem example (red line 80%, blue line 20% ) add 100% of graph.

in decoview github repo found example similar want not able reconstruct graph again.

here video of example in action @1:30

if can me out , break down me, because there isn't documentation lib

i able add 2 independent seriesitems not complementary

in people sample series animated @ same time give impression second series pushing first series along. done using series of timed events.

at 3 seconds series1 animated 19%, after 11 seconds series2 starts animating 45% , @ same time series1 animates 64%. means series1 pushed along , occupy same 19% of chart visible. other 45% of series1 covered series2.

here code samplepeoplefragment.java sets these events:

addanimation(arcview, mseries1index, 19, 3000, imgview, r.drawable.ic_avatar_man, color_blue); addanimation(arcview, mseries2index, 45, 11000, imgview, r.drawable.ic_avatar_woman, color_pink);  arcview.addevent(new decoevent.builder(64)         .setindex(mseries1index)         .setdelay(11000)         .setduration(5000)         .build()); 

the addanimation function few things animating image fades, interested in following part of function sets animated series move:

arcview.addevent(new decoevent.builder(moveto)         .setindex(series)         .setdelay(delay)         .setduration(5000)         .setlistener(listener)         .build()); 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -