if ($_GET[mm3]) { $chart->plot($mm3, false, "red"); $chart->add_legend("MM3", "red"); } if ($_GET[mm10]) { $chart->plot($mm10, false, "green"); $chart->add_legend("MM10", "green"); } //Dibujamos el cierre if ($_GET[cierre]) { $chart->plot($cierre, false, "black", "cross", false, 4); } //Dibujamos apertura if ($_GET[apertura]) { $chart->plot($apertura, false, "gray", "box", "black"); } // Dibujamos el valor de color azul $chart->plot($valor, false, "blue"); // Dibujamos el rango día bajo //$chart->plot($rango_dia_bajo, false, "black", "points"); // Elegimos que texto mostrar abajo if ($_GET[dias] == 1) { $chart->set_x_ticks($hora, $format = "text"); } else { $chart->set_x_ticks($fecha, $format = "text"); } $chart->set_title($_GET[ticker] . " - http://sukiweb.net"); $chart->stroke(); ?>
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ $now = time(); require "chart/chart.php"; $chart = new chart(640, 480); $chart->set_margins(60, 10, 10, 46); $chart->set_expired(true); $chart->set_x_ticks(1, "ctime"); $chart->set_labels("Time", "Vote sum"); $chart->set_extrema(-1, 1); $start = $graph[0][0]; $end = $graph[count($graph) - 1][0]; function separate_xy($points) { $xs = array(); $ys = array(); foreach ($points as $point) { $xs[] = $point[0]; $ys[] = $point[1]; } return array($xs, $ys); } function shade($color1, $color2, $proportion)