threshold plugin and flot initial integration