Hi Sameera, I have tried this in VizGrammar sample and re ordered data, it worked. So i have created a sample for you in jsfiddle [1]. You can use the same approach for your scenario as well.
[1] https://jsfiddle.net/keizer619/cL45fsc8/2/ Regards, On Wed, Aug 3, 2016 at 5:03 PM, Sameera Gunarathne <samee...@wso2.com> wrote: > Hi all, > > I have used VizGrammar js for chart generation for Process Center > analytics. There I give data as follows, > > [{ > "metadata": { > "names": [ > "Task Instance Id", > "Execution Time" > ], > "types": [ > "ordinal", > "linear" > ] > }, > "data": [] > }] > > where data is given as a json array with tulpes of (Task Instance > Id,Execution Time) like ["15091",11455],["15069",11545] and they are > given in the sorted order on execution time. But the visualization seems > like it's sorted on Task Instance Id [1]. I need to visualize charts sorted > by execution time. What can be cause for this? Any help is appreciated. > > [1] > > > Thanks. > Regards, > -- > Sameera Gunarathne > Software Engineer, WSO2 Inc. http://wso2.com > <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa> > Email: samee...@wso2.com > Mobile: +94714155561 > -- *Tharik Kanaka* WSO2, Inc | lean . enterprise . middleware Email: tha...@wso2.com | Web: www.wso2.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev