highcharts / highcharts-editor

https://www.highcharts.com/products/highcharts-editor
Other
250 stars 96 forks source link

Connect with external data source #156

Closed mahmudie closed 6 years ago

mahmudie commented 6 years ago

Hi;

Has anybody ever tried to connect or consume data from database like MySQL, or PostGre. I need such functionality with my project.

Thank you

cvasseng commented 6 years ago

Hi,

you need to expose your dataset through an API, and then build a custom import plugin to pull it in. In other words, you can't connect directly to a database from the editor, you need a layer in-between that can perform the fetches and return the results over HTTP.

There's an example plugin that pulls in data from an API service here and here you could use as a starting point.