youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

Stacked Line/Area Graphs #120

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Attached is a patch against flotr 0.2.0 alpha that adds stacked line and
area charts.

Original issue reported on code.google.com by mab...@hotmail.com on 15 Mar 2010 at 11:08

Attachments:

GoogleCodeExporter commented 8 years ago
Please try subversion trunk first. If that doesn't provide the function, please 
port your patch so it applies cleanly to that version.

Let me know how it goes.

Original comment by peter....@solide-ict.nl on 20 Jul 2010 at 11:18

GoogleCodeExporter commented 8 years ago
current trank version doest support stacked areas/lines :(
attached path incompatible with current trank version :(

Original comment by vita...@gmail.com on 17 Oct 2010 at 1:54

GoogleCodeExporter commented 8 years ago
I applied mab's patch to the last revision from trunk, i have followed #rev176 
and added caching of d2p() values.

Original comment by macku30@gmail.com on 11 Feb 2011 at 1:16

GoogleCodeExporter commented 8 years ago
Patch was against #rev.179

Original comment by macku30@gmail.com on 14 Feb 2011 at 11:32

GoogleCodeExporter commented 8 years ago
I made small mistake in previous patch so i will delete it and add new one 
against rev181

Original comment by macku30@gmail.com on 14 Feb 2011 at 2:41

Attachments:

GoogleCodeExporter commented 8 years ago
Hello, sorry for the very late reply, I'm applying this patch.

Original comment by fabien.menager on 16 Mar 2011 at 7:45

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r182.

Original comment by fabien.menager on 16 Mar 2011 at 7:56

GoogleCodeExporter commented 8 years ago
macku30, would you like to become a commiter for Flotr?

Original comment by fabien.menager on 16 Mar 2011 at 7:58

GoogleCodeExporter commented 8 years ago
I think yes, it would be pleasure for me :)

Original comment by macku30@gmail.com on 17 Mar 2011 at 6:48

GoogleCodeExporter commented 8 years ago
Ok, so contact me at [my name]_at_gmail.com

Original comment by fabien.menager on 17 Mar 2011 at 7:57

GoogleCodeExporter commented 8 years ago
Ok, I sent you an e-mail

Original comment by macku30@gmail.com on 21 Mar 2011 at 9:22

GoogleCodeExporter commented 8 years ago
I've noticed some problems with stacked line charts.  I have attached two 
sample files to this issue.  Tested with flotr-svn r182.

chart-stacked.html contains 4 data series, three with stacked:true,fill:true 
and one with stacked:false,fill:false.  Each of the three stacked data series 
has the same data values.

chart-nostacked.html replicates chart-stacked.html and emulates stacked 
behaviour by progressively adding the values of the lower data series at each 
data point on the x-axis.

The chart in chart-nostacked.html shows properly, while the chart in 
chart-stacked.html goes above the top of the chart area.  Both charts should 
look approximately identical (disregarding colours).

The mouse tracking also only appears to work on the first (green) stacked data 
series in chart-stacked.html.  Mouse tracking also works fine for the unstacked 
blue line.  There are no problems with mouse tracking on the chart in 
chart-nostacked.html.

Original comment by wireless...@gmail.com on 24 Mar 2011 at 3:38

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ok, so to be precise. Mouse tracking for stacked line graphs is not implemented 
yet so it works like for normal - not stacked lines. I will think about this in 
the future. 

About chart area - yes you are right, i will investigate this as soon as 
posible, probably there is a problem with my function to calculate ploting 
range.

Original comment by macku30@gmail.com on 24 Mar 2011 at 7:42

GoogleCodeExporter commented 8 years ago
I have committed a solution for your problem with chart area. Let me know if 
that helped. Solution is in revision r185

Original comment by macku30@gmail.com on 16 Apr 2011 at 8:38

GoogleCodeExporter commented 8 years ago
Thanks.  I tried r186 and I got it working, after a few problems.
I could only get it to display properly when putting lines:{show:true;} into 
the options object (third argument passed to Flotr.draw).  It didn't display 
properly if I removed that from the options object and only had it on each 
individual dataset in the chart data object (second argument passed to 
Flotr.draw).

Original comment by wireless...@gmail.com on 18 Apr 2011 at 6:18

GoogleCodeExporter commented 8 years ago
Ok, I will investigate this too.

Original comment by macku30@gmail.com on 18 Apr 2011 at 6:31

GoogleCodeExporter commented 8 years ago
Thanks.  You can replicate the bug by taking chart-stacked.html from Comment 
#12 and removing "show":true from the lines{} object, and then adding 
lines:{"show":true} to each object in the chartData array.

Original comment by wireless...@gmail.com on 18 Apr 2011 at 6:54

GoogleCodeExporter commented 8 years ago
Fixed in r187

Original comment by macku30@gmail.com on 28 Apr 2011 at 7:32