在phpmyadmin 4.2.2和4.0.4中,我无法根据文档重新创建三列堆叠图表: http://wiki.phpmyadmin.net/pma/Charts#Three_columns
SELECT
225 AS 'Amount',
'Tele2' AS 'Operator',
'2009-11' AS 'Month' UNION
SELECT 653, 'Omnitel', '2009-11' UNION
SELECT 1157, 'Tele2', '2009-12' UNION
SELECT 855, 'Omnitel', '2009-12' UNION
SELECT 569, 'Tele2', '2010-01' UNION
SELECT 253, 'Omnitel', '2010-01' UNION
SELECT 282, 'Tele2', '2010-02' UNION
SELECT 455, 'Omnitel', '2010-02' UNION
SELECT 2960, 'Tele2', '2010-03' UNION
SELECT 3552, 'Omnitel', '2010-03'
假设要返回:
然而,这就是我得到的:("系列"设置,在下图中模糊,设置为"金额") 无法将Stacked启用/禁用或X轴配置为'运算符'创造预期的结果。
答案 0 :(得分:1)
此后,需要为图表提供的数据结构已经改变。数据应采用<x-axis, series1-value, series2-value,..>
格式,而不是旧格式<x-axis, series-name, value>
。
我已经提出feature request请求支持旧格式。 维基页面已过时。我也为此提出bug ticket。
尝试
SELECT
'2009-11' AS 'Month',
225 AS 'Tele2',
653 AS 'Omnitel' UNION
SELECT '2009-12', 1157, 855 UNION
SELECT '2010-01', 569, 253 UNION
SELECT '2010-02', 282, 455 UNION
SELECT '2010-03', 2960, 3552