mesa icon indicating copy to clipboard operation
mesa copied to clipboard

How do I create an unsupported chart type?

Open drew1horn opened this issue 5 years ago • 4 comments

I'd like a stacked area chart showing the numbers of each kind of agent.

drew1horn avatar Jul 27 '20 17:07 drew1horn

Add a guide in the documentation about which module(s) need to be modified. And, some hints about how to modify them would be very helpful. No matter how many chart types you support somebody is always going to want another one. https://python-graph-gallery.com/250-basic-stacked-area-chart/ has hundreds of chart types and you can't do them all.

I'm also adding a feature request for the stacked area chart. I'm surprised it hasn't been requested already.

drew1horn avatar Jul 27 '20 20:07 drew1horn

Are you talking about a stacked bar chart for the visualization server or just in general based on the data collector outputs?

tpike3 avatar Jul 29 '20 13:07 tpike3

  • Actually I'm trying to get a stacked line chart showing the numbers of each kind of agent as time goes by.
  • I've been digging into the problem.
  • It looks to me like all that would be required is adding a "stacked: true" to the Y-Axes options of .local/lib/python3.7/site-packages/mesa/visualization/templates/js/ChartModule.js, but it didn't work.

On Wed, Jul 29, 2020 at 7:10 AM Tom Pike [email protected] wrote:

Are you talking about a stacked bar chart for the visualization server or just in general based on the data collector outputs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/projectmesa/mesa/issues/872#issuecomment-665654067, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACVYFZE7YMVOPDGDHFLPXLR6ANULANCNFSM4PJA45TQ .

-- Drew Einhorn Where are we going? And, why am I in this handbasket?

drew1horn avatar Jul 29 '20 14:07 drew1horn

Related #873

jackiekazil avatar Nov 23 '20 06:11 jackiekazil