Comments (11)
You can use the example format, or click "override" and then pass in the full config that you would normally pass c3 (excluding any JavaScript, as it must be json serialize-able).
from flask_jsondash.
@christabor I following this https://stackoverflow.com/a/32950521/4258892 and here is my configuration
@cross_origin()
@app.route('/c3ts')
def c3ts():
data = dict(
x='x',
xFormat='%Y%m%d',
columns=[
['x', '20130101', '20130102', '20130103', '20130104', '20130105', '20130106'],
['data1', 30, 200, 100, 400, 150, 2],
['data2', 130, 340, 200, 500, 250, 350]
]
)
return jsonify(dict(data=data))
This just doesn't seem to work. When I input the data endpoint for creating the chart, the preview is correct (because it is correct json) but the chart just keeps rendering with the circle...what exactly is the issue here?
from flask_jsondash.
@christabor awaiting your reply!
from flask_jsondash.
I'll take a look today. Is the above example representative of your entire payload configuration?
from flask_jsondash.
from flask_jsondash.
I used your example and was able to get it running with no problem. Here's my configuration:
{
"username": "anonymous",
"category": "uncategorized",
"layout": "grid",
"name": "asdsad",
"modules": [
{
"name": "c3ts",
"family": "C3",
"refresh": false,
"height": 600,
"width": "col-8",
"classes": [],
"dataSource": "http://0.0.0.0:5004/c3ts",
"override": true,
"refreshInterval": null,
"guid": "f8f78659-4d63-61e4-e2cc-ffa2640a950f",
"type": "timeseries",
"order": 0,
"row": 1
}
],
"created_by": "anonymous",
"date": "2018-03-16 23:13:21.005435",
"id": "179a0357-29aa-11e8-ac1e-a0999b0aebbf"
}
from flask_jsondash.
Make sure to check "use custom configuration" in the config. See the screenshot.
from flask_jsondash.
from flask_jsondash.
Config.dataSource is the key used in your config that points to the url serving that data you referenced. Everything you chose should be the same, except the custom override option.
from flask_jsondash.
@christabor Ah perfect, I was only missing checking the 'use custom config button'. Thanks a ton for your help. Cheers!
from flask_jsondash.
Good to hear!
from flask_jsondash.
Related Issues (20)
- Consider removing d3 specific layouts in favor of vega equivalents
- Consider removing wordcloud in favor of vega equivalent
- missing cytoscape demo json file HOT 3
- Remove quantified code from README.md
- add requests_mock to requirements.txt HOT 1
- Add mermaid.js
- example_app$ python3 app.py does not work HOT 5
- Gratipay has closed, should remove from README HOT 1
- create a data source endpoint with dynamic parameters HOT 2
- Make it possible to add a a new chart json by copy-pasting with no guid
- How to specify db password HOT 2
- Remove scrutinizer
- edit_others not working HOT 1
- is there any tutorial how to use this? HOT 3
- support for postgresql HOT 4
- Dash
- pymongo.errors.ServerSelectionTimeoutError pymongo.errors.ServerSelectionTimeoutError: localhost:27017 HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Some advice about license compliance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask_jsondash.