chimchim10 / milkchart

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

Sample package #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,

I love your project and i would like to use it.
But...
I tried every think, but it just doesn't show a graph. Could you please provide 
a example package (.zip) with a working structure (html, js etc).

Thank you very much in advance!

Joke Coat

Original issue reported on code.google.com by jokec...@gmail.com on 20 Jun 2011 at 9:24

GoogleCodeExporter commented 9 years ago
https://github.com/theiviaxx/MilkChart

The example in the docs there should work.  Can you paste your code in or give 
a link to the broken graphs?

Original comment by theivi...@gmail.com on 20 Jun 2011 at 10:46

GoogleCodeExporter commented 9 years ago
Well, now i got the chart, but the table doesn't show...
You can have a look at: http://webapps.jokecoat.nl/Milkchart/example.html

Original comment by jokec...@gmail.com on 21 Jun 2011 at 5:41

GoogleCodeExporter commented 9 years ago
use the copy: true option.  This will leave the original table intact

Original comment by theivi...@gmail.com on 21 Jun 2011 at 3:22

GoogleCodeExporter commented 9 years ago
Could you please help me out with how the options should be entered?

When i try this:
window.addEvent('domready', function() {
    var chart = new MilkChart.Column("chart", copy true);
    });

I get the table, but no graph

Original comment by jokec...@gmail.com on 21 Jun 2011 at 3:49

GoogleCodeExporter commented 9 years ago
window.addEvent('domready', function() {
    var chart = new MilkChart.Column("chart", {copy: true});
});

Original comment by theivi...@gmail.com on 21 Jun 2011 at 3:51

GoogleCodeExporter commented 9 years ago
You won't belief it, but when i try your code, i only get the graph :S
I would like to get them both...

Original comment by jokec...@gmail.com on 21 Jun 2011 at 7:30

GoogleCodeExporter commented 9 years ago
Ok. Now something weird is going on. When i use Google Chrome i only see the 
chart, when i use IE8 i only get the table. But IE gives an error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; 
GTB7.0; InfoPath.1; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 
3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 21 Jun 2011 19:51:55 UTC

Message: Expected identifier, string or number
Line: 292
Char: 1
Code: 0
URI: http://webapps.jokecoat.nl/Milkchart/MilkChart_src.js

Message: 'MilkChart' is undefined
Line: 34
Char: 5
Code: 0
URI: http://webapps.jokecoat.nl/Milkchart/example.html

Message: Object doesn't support this property or method
Line: 3086
Char: 3
Code: 0
URI: http://webapps.jokecoat.nl/Milkchart/mootools-1.2.4-core.js

Original comment by jokec...@gmail.com on 21 Jun 2011 at 7:52

GoogleCodeExporter commented 9 years ago
Doesn't work in IE8.  You can use excanvas, but i don't think text was 
implemented in that.

As for the copy, you're using an old version of the lib, get the latest at 
http://mootools.net/forge/p/milkchart

Original comment by theivi...@gmail.com on 21 Jun 2011 at 8:07

GoogleCodeExporter commented 9 years ago
Ok thank you. the new lib did the trick! and it works in Chrome that's enough 
for me. IE sucks ;-)

Thanks again for your patience!

Original comment by jokec...@gmail.com on 21 Jun 2011 at 8:12

GoogleCodeExporter commented 9 years ago
Could you please have a look at this page: 
http://pitch-putt.net/components/com_jokecoat/grafiekje2.php

As you can see the graph isn't showing the same as the table. The months should 
be grouped by year. Can this be done?

Original comment by jokec...@gmail.com on 21 Jun 2011 at 9:14

GoogleCodeExporter commented 9 years ago
https://github.com/theiviaxx/MilkChart get the master branch from here.  I must 
have screwed up when doing the forge update.

This build has a method called swapAxes() that will swap rows and columns to 
change the display

Original comment by theivi...@gmail.com on 21 Jun 2011 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by theivi...@gmail.com on 25 Jul 2011 at 10:46