クエリを別のクエリにラップできます:
SELECT
cnt AS page_visits
, COUNT(*) AS number_of_visitors
FROM
( SELECT
COUNT(*) AS cnt --- use: COUNT(DISTINCT page_id)
--- for a different count
FROM vislog
GROUP BY visid
) AS grp
GROUP BY cnt
ORDER BY number_of_visitors ;
または(グラフに数値を渡す方が理にかなっていると思います)、ORDER BY
を削除します これは置くことと同じです:
ORDER BY cnt ;