Can't make dates appear on x-axis in pyplot

So I've been trying to plot some data. I have got the data to fetch from a database and placed it all correctly into the variable text_. This is the snippet of the code: import sqlite3 import matplotlib.pyplot as plt import matplotlib.dates as mdate...
more »

2017-09-16 13:09 (1) Answers

Facebook API retrieving Facebook Event HostedBY

So, I'm building an app for my company that sources several different API's from different sites to grab Events from Hotels in the area. I've got this working for facebook..... but I'm trying to figure out how to access the "Hosted by" field associa...
more »

2017-09-15 18:09 (1) Answers

Facebook Open Graph Protocol on Tumblr - Title

I'm having trouble with fixing my Open Graph tags for my Tumblr website. I've already tried adding various code-snippits from the forum, but still without succes. My post title is not appearing in the header. The only thing I'm seeing is the title o...
more »

2017-09-14 19:09 (0) Answers

Shiny/R: Formatting graph date from character date

I have spent hours on this and I am a new user. I've been to many websites and tried different things. I can not seem to get the graph to show dates in a YYYY-MM format on the x axis. The date starts out being character, which seems to work for th...
more »

2017-09-11 21:09 (1) Answers

Handling duplicate nodes in Breadth First Search

Imagine there is a graph. The nodes are of the form GraphNode. The graph can have duplicate nodes. We have to do a BFS on the graph. We do not know the entire graph in the beginning, i.e., there is no way to index the nodes of the graph. For eg, only...
more »

2017-09-10 20:09 (1) Answers

facebook sharing text, open graph tags

I've asked a couple of questions on here before and got no response so I'm not holding out too much hope, anyway here goes. I have implemented a facebook sharing button from our site and I'm trying to change the highlighted text in the attached imag...
more »

2017-09-07 19:09 (0) Answers

Get photo from post using Facebook graph API

I am attempting to display the latest post from a public Facebook page on a website using the graph API. Using the following URL, I am able to get the latest posts data: https://graph.facebook.com/MYPAGENAME/posts?access_token=MYACCESSTOKEN Which ...
more »

2017-08-22 12:08 (1) Answers

fb graph api get video source in group feed

I have a private group and fetched all posts using the following URL https://graph.facebook.com/v2.10/FB_GROUP_ID/feed?fields=attachments{title,media,subattachments,type,url},type,created_time,description,message&limit=10&access_token=MY_ACCE...
more »

2017-08-20 21:08 (0) Answers

Finding maximal cliques and removing nodes?

I am trying to find maximal cliques for a set of items. Currently I am using networkx library of python and using find_cliques() function to find all the maximal cliques as below: import newtworkx as nx G = nx.Graph() E = [[1,2], [1,3], [1,4], [2,...
more »

2017-08-19 01:08 (1) Answers

ggplot2 - Stacked bar with different width

I want to produce a reverse pyramid graph where the bar stacked on each other with different width. 1st, I have a stacked bar chart as below code sample library(dplyr) library(ggplot2) sample <- data_frame(x=c(1, 1, 1, 1, 2, 2, 2, 2), ...
more »

2017-08-15 12:08 (2) Answers

Why is my xAxis not sorting in d3?

Yesterday I posted a question about a bar graph that I didn't know how to sort in alphabetical order. @Mark_M very kindly answered and provided me whith a good solution that normally should perfectly work. Here is the snippet: var xAxis = d3.axisBo...
more »

2017-08-13 13:08 (1) Answers

Any idea what's wrong with this d3 sort function?

I'm desperately trying to add a simple sort function (alphabetical order) to my bar graph, but strangely all the bars seem to disappear to the left when i click (triggers the sort function). Can anyone tell me what's wrong with my code ? Here's the...
more »

2017-08-12 20:08 (1) Answers

Is Facebook Mention Tagging Autocomplete Possible?

I am trying to implement a feature in my app using Facebook's Mention Tagging API. Most articles online reference the blog post here, which then links to a broken documentation link. I am wondering if this is even possible, as I cannot find any resou...
more »

2017-08-10 23:08 (0) Answers

Using the JGraphT library's EdgeProvider class

I've looked all 'round for a solution, but due to my not having much experience with Java's generic programming style, I'm a bit stumped on what words to even use to search this. I am trying to use the DOTImporter (http://jgrapht.org/javadoc/org/jgra...
more »

2017-06-20 01:06 (0) Answers

Facebook graph - empty variables

i want to get some info about facebook user on my page, but when i try to do it - it just returns empty strings, my code: $request = new FacebookRequest( $session, 'GET', '/me' ); $response = $request->execute(); // get response $graphObj...
more »

2017-06-16 20:06 (0) Answers

Visualizing R Function Dependencies

There are a lot of resources for people who want to visualize package dependencies, but I'm interested specifically in visualizing functions within a package and their dependencies on one another. There are tools like miniCRAN for graphing package de...
more »

2017-05-23 21:05 (1) Answers

How to make a graph using PHP from oracle

I want to create a graph that the data are from oracle by using php. I did not found example that use oracle as a database. Mostly are from mysql. The data is like this I have made this code but it's not working. its show like this data.php &...
more »

2017-05-19 06:05 (1) Answers

facebook graph api add like to post

i'm trying to like a post by its ID using facebook api javascript i use the following script FB.api( "/me/og.likes", "POST", { "object": 'https://graph.facebook.com/'+idPagePost }, function (respo...
more »

2017-05-10 19:05 (1) Answers

facebook sdk javascript graph api

I'm trying to create a Facebook web app using the SDK javascript login and logout to get all the logged in user informations and export them into a JSON file. Can anybody help me with the code ? Thanks. I already have the login and logout part of th...
more »

2017-05-04 17:05 (0) Answers

VBA code to apply only the last data label

I don't speak English very well, but I hope you can understand me. It's about a VBA code for plotting graphs. I am trying to automate my sheets and I found a simple and easy code in the internet to do so. After updating the series, my intention is...
more »

2017-05-03 19:05 (1) Answers

R: using dates in bar graph with ggplot2

I would like to create a bar plot that displays the number of Date entries for a certain date in the y axis of a bar graph and the date on the x axis of a graph. At the same time, I would like to split the bar into a Yes and No section. Date,Hungry ...
more »

2017-04-21 22:04 (1) Answers

R visNetwork: Multiple graph layout?

I would like to position two visNetwork plots side-by-side for visual comparison. Multi-plot positioning is possible using igraph with par() or layout(). Is there a way to do this for visNetwork? Work-arounds/kludges (including RShiny, etc.) are acce...
more »

2017-04-20 14:04 (2) Answers

Python: Temporary attibutes

I am implementing a graph ADT in Python and I would like to implement a few functions which search the graph. One of these is bfs(G,v), which performs a breadth-first search and then returns a path (list of nodes) from the starting vertex v to a pred...
more »

2017-04-10 15:04 (0) Answers

Python: splitting trajectories into steps

I have trajectories created from moves between clusters such as these: user_id,trajectory 11011,[[[86], [110], [110]] 2139671,[[89], [125]] 3945641,[[36], [73], [110], [110]] 10024312,[[123], [27], [97], [97], [97], [110]] 14270422,[[0], [110], [174...
more »

2017-04-09 05:04 (3) Answers