在php中创建动态条形图[关闭]

I want a script to create a bar graph in php such that x-scale and y-scale changes dynamically an according the graph changes.How to do it ? I have not worked on php graphics till yet.help me ...reply me ..Thanks

you don't need to actually work with graphs, if you want to, you can use the GD library.

But the easyway would be to output some Div's with a bit of CSS, specifiying it's background color and width/height. for example:

<?php
    $height = "30px";

    $a_width = "200px";

    $b_width = "250px";

    echo "<div style='width:$a_width; height:$height; background: red; margin-bottom: 10px;'></div>";

    echo "<div style='width:$b_width; height:$height; background: red;'></div>";

?>

Try the Highcharts library in Javascript: http://www.highcharts.com/
Easy and intuitive.
In the demo gallery there are a lot of examples.