English 中文(简体)
php 交互式图表动态表格
原标题:php interactive chart dynamic form
  • 时间:2012-04-06 15:46:13
  •  标签:
  • php
  • charts

我很不了解购买力平价,我期待着以最快的方式建立一种接受用户投入和根据投入绘制两个图表的形式。

  1. Please enter amount: (user enters amount)
  2. (user clicks Calculate button)
  3. The script should produce two Excel-style charts based on the user input, chart 1 being a bar chart with the input up the Y axis and pre-set percentage values along the X. Chart 2 should be a line chart with similar input and percentages.

无论用户的类型如何,各图表都应看齐相同,只看改变的X数值。 我先看看看开放源代码表图书馆,但我不敢肯定我如何能够增加用户投入功能。

有些人能否帮助我?

最佳回答

就形式而言,尝试的是:

<html>
  <body>
    <form action="chart.php" method="post">
      Name: <input type="text" name="amount" />
      <input type="submit" />
    </form>
  </body>
</html>

图表。 php:

$amount = intval($_POST[ amount ]);
include( chart_library.php );
show_graph($amount);

如果你对<代码>php图图书馆进行谷歌搜索,你可以找到能够显示图表的各种图书馆。 rel=“nofollow>> JpGraph是一个例子。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签