csbun / gitbook-plugin-chart

Using C3.js or Highcharts chart library in Gitbook.
MIT License
11 stars 3 forks source link

Any plans for adding Google Charts? #4

Open FickleLife opened 8 years ago

FickleLife commented 8 years ago

There's a lot of other charts (such as org charts) supported by google charts... any plans to add it?

csbun commented 8 years ago

Sorry for NEVER get in touch with Google Charts. I'm not sure if we can use it in the same way. PULL REQUEST will be much appreciated.

As I see, the API of Google Charts is something like:

chart.draw(data, options);

Here we need two object, data and options. We neet to combine them into one object, like:

{
  "data": {},
  "options": {}
}

Then we can use it like other charts.