Open thienanle opened 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
@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).
@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>
Would be great to support this, to do something like: