-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updating the underlying data does not change the plots and charts on the web page #60
Comments
I suspect the problem is that the chart objects only get built once, so when you include So what I would do is remove the |
Dear nmkridler, thank you very much for your great help. but after i changed the code as you told me i tried it and i found the same problem ( changing the underlying data in (fitbit_data.csv file) don't affect the line plot after refreshing the web page. So, plz help me again. def create_line_plot(mydata):
def create_histogram(df):
def create_scatterplot(df):
def make_mg_layout(filename):
def get_layouts(mod, filename):
class MyDataWrapper(object):
|
In your code it doesn't look like the application has any way to know that the data has changed. |
okay fine...Please, could u send me a code example for an application that get the data from a database? |
hello,
i try to use pyxley in a production environment but i found that when i change the underlying data the plots and charts in the web page don't get affected with these data changes.
i follow all the instructions in this url:
http://pyxley.readthedocs.io/en/latest/production.html
but it doesn't solve the problem.
this is the code for the metrics graphics example after i modified it as mentioned in the above link
def create_line_plot(df):
""" create a mg line plot
def create_histogram(df):
""" create a mg line plot
def create_scatterplot(df):
""" create a mg line plot
def make_mg_layout(filename):
# load a dataframe
df = pd.read_csv(filename)
#global lc
# Make a UI
ui = UILayout("FilterChart")
def get_layouts(mod, filename):
class MyDataWrapper(object):
Plz if somebody can help me to solve this problem i will appreciate it a lot
The text was updated successfully, but these errors were encountered: