imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.88k stars 1.78k forks source link

Barchart combined linechart (don't use Stack) #764

Open ferguquang opened 3 years ago

ferguquang commented 3 years ago

Hi team, I want to build 1 view about Barchart combined LineChart using your library (don't use Stack). Thanks.

odoublu commented 3 years ago

I'd like that functionality too.

imaNNeo commented 3 years ago

Hi. I think we can introduce a new chart (for example called CombinedBarLineChart) Does it work for you? Do you think others need to have more complicated combinations? like Scatter and Line?

jainkunal commented 3 years ago

I think CombinedBarLineChart works and is also something that is pretty common. I have not seen other complicated combo charts.

BramDC3 commented 3 years ago

+1 I would also love to have this combination

ferguquang commented 3 years ago

Hi. I think we can introduce a new chart (for example called CombinedBarLineChart) Does it work for you? Do you think others need to have more complicated combinations? like Scatter and Line?

Hi bro, I have worked on a few projects with charts that need line and bar charts combined. I think this is really necessary, not only for me, but for many other developers.

ferguquang commented 3 years ago

Hi. I think we can introduce a new chart (for example called CombinedBarLineChart) Does it work for you? Do you think others need to have more complicated combinations? like Scatter and Line?

CombinedBarLineChart is a very reasonable name. Thanks a lot.

bsbilal commented 2 years ago

does still not exist? can you suggest me a solution?

bigbang489 commented 2 years ago

Any update?

imaNNeo commented 2 years ago

Unfortunately not.

martinkong0806 commented 2 years ago

Hello @imaNNeoFighT My project requires a BarLineChart, and I found out that there are a lot of bugs if I trying to interact with the graph stacked on each other. I'm kinda desperate needing this feature, and most of my existing graphs are using fl_chart. So I am thinking on contributing on this package to build this feature, and I want to know how you want that to be implemented.

My plan is simply implement all the LineChart classes and add functions and components needed for bar charts, so basically it will looks pretty much a line-chart except if you make a flag on the LineChartBarData (probably set isBarChart to true), the specified LineChartBarData will be rendered as BarChart.

Please let me know if this approach works with the direction of the fl_chart.

Thanks

imaNNeo commented 2 years ago

@martinkong0806 I prefer to have a CombinedAxisChart, which accepts a list of AxisBased charts (such as Line, Bar, and Scatter) and draws them on top of each other. Just like how the Stack widget works, but with less complexity than using a Stack. We have an AxisChartScaffoldWidget which helps us a lot to implement this.

image

AxisChartScaffoldWidget is an internal widget in which we can put a Stack widget in the chart area to put some axis base charts on top of each other.

sgshivamgarg8 commented 2 years ago

any update?

mrverdant13 commented 1 year ago

+1 👍🏼

ViniOkamoto commented 1 year ago

Looking forward to this feature, guys!

iaohtdev commented 1 year ago

do have any update so far?

JeffOlajos commented 1 year ago

Is this being worked on? As requested by @martinkong0806, we would also prefer to have a CombinedAxisChart, which accepts a list of AxisBased charts (such as Line, Bar, and Scatter). We are looking for a well supported charting library to integrate into FML (https://fml.dev) to replace our existing package and fl_chart seems best suited for that.

MaeF41 commented 1 year ago

I would appreciate having this feature too 🙏

imaNNeo commented 1 year ago

Hi, unfortunately, I couldn't find enough free time to do that yet. Please stay tuned, you can also be my sponsor to motivate me, then I can put more of time into this project.

JeffOlajos commented 1 year ago

On Mon, Aug 21, 2023 at 6:15 PM Iman Khoshabi @.***> wrote:

Hi, unfortunately, I couldn't find time to do that yet. Please stay tuned, you can be my sponsor https://github.com/sponsors/imaNNeo to motivate me, then I can put more of time into this project.

— Reply to this email directly, view it on GitHub https://github.com/imaNNeo/fl_chart/issues/764#issuecomment-1687122227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAZAU3KNGFQHMJ4SNAFRPTXWPMZ5ANCNFSM5DUKXGYQ . You are receiving this because you commented.Message ID: @.***>

Thanks for the update. I will happy to do that. We are evaluating this package to include in our flutter Markup Language https://fml.dev. --

JeffOlajos commented 1 year ago

Hi Iman,

How are you making out with this? Its a big priority for us if you are able to find the time.

Cheers, Jeff

On Mon, Aug 21, 2023 at 6:15 PM Iman Khoshabi @.***> wrote:

Hi, unfortunately, I couldn't find time to do that yet. Please stay tuned, you can be my sponsor https://github.com/sponsors/imaNNeo to motivate me, then I can put more of time into this project.

— Reply to this email directly, view it on GitHub https://github.com/imaNNeo/fl_chart/issues/764#issuecomment-1687122227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAZAU3KNGFQHMJ4SNAFRPTXWPMZ5ANCNFSM5DUKXGYQ . You are receiving this because you commented.Message ID: @.***>

--

JeffOlajos commented 1 year ago

Any luck on this Khoshabi?

On Mon, Aug 21, 2023 at 6:15 PM Iman Khoshabi @.***> wrote:

Hi, unfortunately, I couldn't find time to do that yet. Please stay tuned, you can be my sponsor https://github.com/sponsors/imaNNeo to motivate me, then I can put more of time into this project.

— Reply to this email directly, view it on GitHub https://github.com/imaNNeo/fl_chart/issues/764#issuecomment-1687122227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAZAU3KNGFQHMJ4SNAFRPTXWPMZ5ANCNFSM5DUKXGYQ . You are receiving this because you commented.Message ID: @.***>

--

imaNNeo commented 1 year ago

Hi there, Unfortunately, I can't guarantee to add this feature when you pay something (we don't have such kind of protocol at this time) So I recommend you to become a sponsor https://github.com/sponsors/imaNNeo, then I can put more time into the fl_chart.

Best, Iman

On Thu, Sep 21, 2023 at 9:39 PM Jeff Olajos @.***> wrote:

Any luck on this Khoshabi?

On Mon, Aug 21, 2023 at 6:15 PM Iman Khoshabi @.***> wrote:

Hi, unfortunately, I couldn't find time to do that yet. Please stay tuned, you can be my sponsor https://github.com/sponsors/imaNNeo to motivate me, then I can put more of time into this project.

— Reply to this email directly, view it on GitHub https://github.com/imaNNeo/fl_chart/issues/764#issuecomment-1687122227,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/ANAZAU3KNGFQHMJ4SNAFRPTXWPMZ5ANCNFSM5DUKXGYQ>

. You are receiving this because you commented.Message ID: @.***>

--

— Reply to this email directly, view it on GitHub https://github.com/imaNNeo/fl_chart/issues/764#issuecomment-1730189428, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVPIFBI63PQY3KQL3UFHVDX3SJXNANCNFSM5DUKXGYQ . You are receiving this because you were mentioned.Message ID: @.***>

Rhu-Martins commented 9 months ago

Hi guy, do you have any update about that?

ricardocastanho commented 3 months ago

The easiest option for me was just use a Stack and put one chart above the other. This is a little annoying because, depending of the aspect ratio, they change its positions differently.