代码之家  ›  专栏  ›  技术社区  ›  pavium

有人用谷歌图表API制作了SPC图表吗?

  •  1
  • pavium  · 技术社区  · 15 年前

    我决定采纳这个问题的建议: create-excel-chart-programmatically-in-php 而不是自己做图形。

    我还想遵循使用谷歌图表API的建议。这将是我第一次。

    但我 不要 想做一个Excel图表-不管我的同事使用Excel 一切 . 我 喜欢 接收我的数据图像的想法。

    显然,如果您熟悉统计过程控制,我们将讨论一个折线图。

    是否有人能够为SPC“配置”谷歌折线图?

    因为我没有看到任何例子,所以我最感兴趣的是它是否可能。

    编辑:当然了 可能。也许先前“解决方案”的缺乏是由于不愿将敏感数据交给谷歌,等待图表的回归。

    Accepting your own answer is OK 但是对于你们中那些可能会想知道的人,我没有得到它的代表点。

    如果有人建议的话,我可以接受更好的东西。

    1 回复  |  直到 15 年前
        1
  •  1
  •   pavium    15 年前

    $values

    echo "<table class='noborder'>\n";
    echo "<caption class='spc'>Product : Measurement</caption>\n";
    echo "<tr><th>&nbsp;</th><th>&nbsp;</th><th>&nbsp;</th></tr>\n";
    echo "<tr><td>AVG</td><td>\n";
    echo "<img src='http://chart.apis.google.com/chart?cht=lc\n&chd=t:";
    printf("%s", implode(',', $values));
    echo "\n&chm=o,FF9900,0,-1,10|R,FFDDDD,0,0.0,1.0|r,F9ECEC,0,0.1,0.9";
    echo "\n&chs=600x500&chco=0000CC'><td>&nbsp;</td>\n";
    echo "<tr><td>&nbsp;</td><th>";
    printf("LCL=%6.3f, AVG=%6.3f, UCL=%6.3f", $lcl, $avg, $ucl);
    echo "</th><td>&nbsp;</td></tr>\n";