Skip to content
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

change type chart #1

Open
mursyidinadnan opened this issue Apr 17, 2018 · 2 comments
Open

change type chart #1

mursyidinadnan opened this issue Apr 17, 2018 · 2 comments

Comments

@mursyidinadnan
Copy link

sir how if i want change the type of chart? like using column type
thankyou

@Shestac92
Copy link

Shestac92 commented Apr 19, 2018

@mursyidinadnan
Pie chart has some differents from the column chart, so you should change the JSON chart configuration to create a column chart. Actually for the column chart you should define a series.
To implement a column chart, please, follows steps below:
In python-flask-mysql-template/app.py change

{
		"chart": {
			"type": "pie",
			"title": "Top 5 fruits",
			"data": data,
			"container": "container"
		}
	}

to

{"chart": 
                                 {"container": "container",
                                  "series":[
                                    {"enabled":True,
                                     "seriesType":"column",
                                     "data": data
                                    }],
                                  "title": "Top 5 fruits",
                                  "type": "column"}}

Now you can launch the modified demo.

@dennistheripper
Copy link

hi there it's possible that i could change the demo to make a candlestick chart with my own dataset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants