experience-experiments / react-easy-chart

[DEPRECATED] - Easy to use React Charting library
http://experience-experiments.github.io/react-easy-chart
BSD 3-Clause "New" or "Revised" License
142 stars 55 forks source link

Mixed chart type #86

Open thienanle opened 8 years ago

thienanle commented 8 years ago

Would be great to support this, to do something like:

image

harunhasdal commented 8 years ago

@thienanle would this be similar to what you are asking? http://rma-consulting.github.io/react-easy-chart/bar-chart/index.html#bar_and_line

thienanle commented 8 years ago

@harunhasdal Yes that would serve the purpose of the above chart. However, it would be nice to have more flexibility, as other x-y type charts could also benefit from this (for example, area and line, scatter and line).

harunhasdal commented 8 years ago

@thienanle I agree. This would however mean that we should expose more components in order to have a flexible API. We had a discussion about this earlier, it is always a tradeoff between simple api vs flexibility. If you have a workable API in mind, we can look into implementing it; we also welcome PRs.

FYI below is the sort of API we had in mind

<Graph data=...>
  <XAxis .../>
  <YAxis .../>
  <Series>
    <BarChart .../>
    <LineChart.../>
  </Series>
</Graph>