I am developing a program that incorporates a graph into the application. I have been reading several threads on this and used this thread to choose PHP/SWF charts. I really like the flexibility of the application. I can change the chart types and add special effects. I think this gives the application the flare I'm looking for.
So I read the tutorial and the rest of the documentation. I built a test application using their sample code. Everything worked perfectly. Then it was time to apply the code to my application. I already have a working application that I am adding this to. I took the data that I was getting and compiled it into the format and array that the PHP/SWF application uses. When I did this I got the default graph.
I turned to the application developer for assistance and got this message”
I'm definitely interested in registering this application and buying a license for it. However, I want to make sure it's going to work first. They are not offering any initial support. So I'm turning to you all to see if you've seen something similar. I am not going to be paying just to get an e-mail answered.
To trouble shoot it further I took the dataset that my database was returning and manually put it in the chart application:
This worked. I got my graph and was able to change the format to the various options available. I then tried to dynamically load the data from the database:
This code gives me the default chart, which according to means that the application does not recognize the array that is being passed. Then I followed their advice and passed the page to the browser to make sure that it did not generate any errors. Sure enough, no errors.
I removed the generate chart code and bounced out the information to the browser. Both the static and dynamically generated array's returned these values:
Stumped I again generated the report. I looked at the output and received the same HTML source for the manually compiled array and the dynamically compiled array:
I'm really stumped by this application. I believe I'm loading the array correctly. From what I'm seeing the array is being loaded and parsed properly. I would love to get this application working in a test environment so I can buy this application, however I'm just about to give up on this application and find another solution, free or not.
Any assistance is greatly appreciated.
Thank you
"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart
So I read the tutorial and the rest of the documentation. I built a test application using their sample code. Everything worked perfectly. Then it was time to apply the code to my application. I already have a working application that I am adding this to. I took the data that I was getting and compiled it into the format and array that the PHP/SWF application uses. When I did this I got the default graph.
I turned to the application developer for assistance and got this message”
www.maani.us/charts said:For all inquiries, please e-mail us at info@maani.us.
Technical support is available for registered users only. To receive a reply, please e-mail us from an address with the same domain name the tool was registered for, and include your registration code in the e-mail.
I'm definitely interested in registering this application and buying a license for it. However, I want to make sure it's going to work first. They are not offering any initial support. So I'm turning to you all to see if you've seen something similar. I am not going to be paying just to get an e-mail answered.
To trouble shoot it further I took the dataset that my database was returning and manually put it in the chart application:
Code:
$chart ['chart_data'][0]= array("", "12-08","12-09", "12-10", "12-11", "12-12");
$chart ['chart_data'][1] = array("Events",18,9,19,24,26);
$chart ['chart_data'][2] = array("Dispatches",3,0,3,3,7);
This worked. I got my graph and was able to change the format to the various options available. I then tried to dynamically load the data from the database:
Code:
$Date = array();
$Event = array();
$Disp = array();
$Date[0] = "";
$Event[0] = "Events";
$Disp[0] = "Dispatched";
$x=0;
foreach($graphdata as $k=>$v) {
$x++;
$Date[$x] = substr($v[0],5);
$Event[$x] = $v[1];
$Disp[$x] = $v[2];
}
$chart['chart_data'][0] = $Date;
$chart['chart_data'][1] = $Event;
$chart['chart_data'][2] = $Disp;
This code gives me the default chart, which according to means that the application does not recognize the array that is being passed. Then I followed their advice and passed the page to the browser to make sure that it did not generate any errors. Sure enough, no errors.
I removed the generate chart code and bounced out the information to the browser. Both the static and dynamically generated array's returned these values:
output said:stacked column 12-08 12-09 12-10 12-11 12-12 Events 18 9 19 24 26 Dispatched 3 0 3 3 7
Stumped I again generated the report. I looked at the output and received the same HTML source for the manually compiled array and the dynamically compiled array:
html-manual said:<chart>
<chart_type>stacked column</chart_type>
<axis_category orientation="diagonal_up" />
<chart_transition type="slide_up" delay="1" duration="2" order="series" />
<chart_data>
<row>
<string></string>
<string>12-08</string>
<string>12-09</string>
<string>12-10</string>
<string>12-11</string>
<string>12-12</string>
</row>
<row>
<string>Events</string>
<number>18</number>
<number>9</number>
<number>19</number>
<number>24</number>
<number>26</number>
</row>
<row>
<string>Dispatched</string>
<number>3</number>
<number>0</number>
<number>3</number>
<number>3</number>
<number>7</number>
</row>
</chart_data>
</chart>
html-dynamic said:<chart>
<chart_type>stacked column</chart_type>
<axis_category orientation="diagonal_up" />
<chart_transition type="slide_up" delay="1" duration="2" order="series" />
<chart_data>
<row>
<string></string>
<string>12-08</string>
<string>12-09</string>
<string>12-10</string>
<string>12-11</string>
<string>12-12</string>
</row>
<row>
<string>Events</string>
<number>18</number>
<number>9</number>
<number>19</number>
<number>24</number>
<number>26</number>
</row>
<row>
<string>Dispatches</string>
<number>3</number>
<number>0</number>
<number>3</number>
<number>3</number>
<number>7</number>
</row>
</chart_data>
</chart>
I'm really stumped by this application. I believe I'm loading the array correctly. From what I'm seeing the array is being loaded and parsed properly. I would love to get this application working in a test environment so I can buy this application, however I'm just about to give up on this application and find another solution, free or not.
Any assistance is greatly appreciated.
Thank you
"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart