jpemberthy / ezgraphix

[NOT MAINTAINED] A rails plugin to generate flash based graphics using a free and customizable chart's set.
http://ezgraphixdemo.heroku.com/
28 stars 5 forks source link

Stacked graphs not enabled #3

Closed rdytech closed 14 years ago

rdytech commented 14 years ago

Stacked graphs are distributed with the gem and can easily be added.

Add the following to ezgraphix_helper

when 'stackarea2d'
  '/FusionCharts/FCF_StackedArea2D.swf'
when 'stackbar2d'
  '/FusionCharts/FCF_StackedBar2D.swf'
when 'stackcol2d'
  '/FusionCharts/FCF_StackedColumn2D.swf'
when 'stackcol3d'
  '/FusionCharts/FCF_StackedColumn3D.swf'

and also add the following to ezgraphix at line 171

elsif !['msline', 'mscol2d', 'msbar2d', 'mscol3d', 'stackarea2d', 'stackbar2d', 'stackcol2d', 'stackcol3d'].include?(self.c_type)

jpemberthy commented 14 years ago

Hey! that would be nice if you send me a pull request with those changes.