小编Gon*_*oni的帖子

如何在Parse.com中设置路线?Parse.Router的替代品

什么是集成路由器最简单的方法?这个https://parse.com/questions/how-to-create-website-with-parse建议在Parse旁边添加Backbone.js.

我该如何以最轻的方式做到这一点?

想知道Parse团队是否正在计划Parse.Router类:)

javascript backbone.js parse-platform

7
推荐指数
2
解决办法
4625
查看次数

使用NVD3分组和堆叠multiBarChart

Javascript中条形图可能重复的问题:堆积条形图+分组条形图

我正在尝试创建一个堆积条形图,让您可以将2个值(深蓝色和中蓝色)与上周的数据点(次要亮蓝色'后面')进行比较.

分组和堆叠multiBarChart

  1. 与开始multiBarChart().stacked(true)一开始我尝试合并两个星期后的14条单一的阵列,其中x位置可以帮助组吧.我试图以形成我的组合,其中对象数组.x属性的值是0,0.3,1,1.3,2,2.3,等. 在此输入图像描述 不幸的是,lineChart()它不使用x定位值.

  2. 另一个想法是利用该组.stacked(false),提供4个具有相同x值的项目(而不是2个).然后它们看起来叠加在彼此之上而不是堆叠. 在此输入图像描述 这里的间距看起来不错,但是如何将这些2比2叠加?

javascript charts nvd3.js

6
推荐指数
1
解决办法
8136
查看次数

获取指向给定对象的所有Parse.Relations

我正在使用a Parse.Relation在主题下对用户进行分组.如何检索topic.relation指向给定用户的所有主题?

问题是在单个调用/回调中执行此操作.

// first add() a User object to the Topic's Parse.Relation
this.friendRelation = this.topic.relation("friend");
this.friendRelation.add(user);
// save the Topic to save its newly added .relation to Parse/Mongo
this.topic.save();

// iterate by adding the same User to several Topics

// (...)

// then you want to retrieve all Parse.Relations of all Topics where that 
// specific user is pointed to

// the non-optimized way is to traverse every row in the Topics index 
// and query …
Run Code Online (Sandbox Code Playgroud)

javascript backbone.js parse-platform

2
推荐指数
1
解决办法
3780
查看次数