douyi3760
douyi3760
2015-02-06 17:43

问:从Postgres获取数字(整数)并将逗号放在图表上

已采纳

What i need

Get two integer numbers from a query and put then like decimal. Example: 214566 to 214.566

What i've done

SQL Query

select to_char(numberOne,'FM999G999G999') from tableOne

Putting this code i get a blank chart enter image description here

Changing the query for a simple result, the chart becomes visible SQL Query

select numberOne from tableOne

enter image description here

Remember, the numbers are on "Integer" type

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • doubaomao9304 doubaomao9304 6年前

    In line 4518 of phplot.php i've put

    $i = 0;
    $which_lab = null;
    foreach($argv as $value) {
        if($i == 0) {
            $i++;
            $which_lab.= number_format($value, 2, ',','.');
        }
    }
    
    点赞 评论 复制链接分享