It is currently Mon Nov 20, 2017 1:38 pm Advanced search

Flask HighChart from MongodB

Technical support, bug reports, feature requests and more.

Flask HighChart from MongodB

Postby niceseb38 » Mon Sep 04, 2017 3:47 pm

https://jsfiddle.net/larsac07/t0r8qz9p/

This uses hardcoded start and end date, but have Python-Flask with Mongodb read in via pandas

import pandas as pd
from pymongo import MongoClient
client = MongoClient()
db = client.get_database("testing_flask")
collection = db.my_collections
df = pd.DataFrame(list(collection.find()))

df
_id date_real name
0 59a2ea17aa4bb088e4385d35 2017-06-08 ProjectX GUI Preview
1 59a2ea17aa4bb088e4385d36 2017-07-26 ProjectX GUI Evaluation
2 59a2ea17aa4bb088e4385d37 2017-08-09 ProjectX GUI Customer
3 59a2ea17aa4bb088e4385d38 2017-06-08 ProjectX ChipZ Preview
4 59a2ea17aa4bb088e4385d39 2017-05-04 ProjectX ChipZ FPGA
5 59a2ea17aa4bb088e4385d3a 2017-06-29 ProjectX ChipZ Initial
6 59a2ea17aa4bb088e4385d3b 2017-06-08 LakeA GUI Preview
7 59a2ea17aa4bb088e4385d3c 2017-07-26 LakeA GUI Evaluation
8 59a2ea17aa4bb088e4385d3d 2017-08-09 LakeA GUI Customer


How to extract my df and replace the hardcoded example with these dynamic data from MongodB
i.e 'date_real' and 'name' specifically

Thanks
Last edited by niceseb38 on Mon Sep 04, 2017 4:15 pm, edited 3 times in total.
niceseb38
 
Posts: 3
Joined: Mon Sep 04, 2017 1:33 pm

Re: Flask HighChart from MongodB

Postby MisterNeutron » Mon Sep 04, 2017 3:49 pm

Posted in the wrong forum section.
User avatar
MisterNeutron
 
Posts: 360
Joined: Sun Aug 18, 2013 1:20 pm

Re: Flask HighChart from MongodB

Postby niceseb38 » Mon Sep 04, 2017 4:14 pm

Hi @MisterNeutron, which section should I remove to, thanks
niceseb38
 
Posts: 3
Joined: Mon Sep 04, 2017 1:33 pm

Re: Flask HighChart from MongodB

Postby MisterNeutron » Mon Sep 04, 2017 4:20 pm

Well, this is the section for Highslide JS, not Highcharts. Maybe one of the moderators will straighten things out. Threads in the wrong place tend to get ignored, especially since there's no official support for Highslide JS any longer.

I've flagged it for the mods, so just let it ride for the moment.
User avatar
MisterNeutron
 
Posts: 360
Joined: Sun Aug 18, 2013 1:20 pm

Re: Flask HighChart from MongodB

Postby MisterNeutron » Thu Sep 07, 2017 12:28 am

Looks like no one's paying attention. I suggest you re-post your question in the Highcharts section, above.
User avatar
MisterNeutron
 
Posts: 360
Joined: Sun Aug 18, 2013 1:20 pm


Return to Highslide JS Usage

Who is online

Users browsing this forum: Bing [Bot] and 2 guests