我有以下数据...
data =
[
{rundate:"2019-05-01 00:00:00", productLevel:"Level1", QCValue : 78.00},
{rundate:"2019-05-02 00:00:00", productLevel:"Level1", QCValue : 82.00},
{rundate:"2019-05-03 00:00:00", productLevel:"Level1", QCValue : 79.00},
{rundate:"2019-05-04 00:00:00", productLevel:"Level1", QCValue : 81.00},
{rundate:"2019-05-05 00:00:00", productLevel:"Level1", QCValue : 78.00},
{rundate:"2019-05-06 00:00:00", productLevel:"Level1", QCValue : 80.00},
{rundate:"2019-05-07 00:00:00", productLevel:"Level1", QCValue : 81.00},
{rundate:"2019-05-01 00:00:00", productLevel:"Level2", QCValue : 175.00},
{rundate:"2019-05-03 00:00:00", productLevel:"Level2", QCValue : 180.00},
{rundate:"2019-05-04 00:00:00", productLevel:"Level2", QCValue : 179.00},
{rundate:"2019-05-06 00:00:00", productLevel:"Level2", QCValue : 176.00},
{rundate:"2019-05-08 00:00:00", productLevel:"Level2", QCValue : 178.00},
{rundate:"2019-05-09 00:00:00", productLevel:"Level2", QCValue : 176.00},
{rundate:"2019-05-10 00:00:00", productLevel:"Level2", QCValue : 177.00}
];
我需要为每个productLevel(即Level1和Level2)绘制两个Levey-Jennings Charts(可以是'N'图表)。我不能使用“系列”示例,因为它们必须是两个不同的图表。
在两种情况下,维度均为运行日期... 我想知道如何为每个维度设置维度和分组,以便通过ProductLevel值(例如Level1,Level2等)过滤维度。
我还需要每个产品级别值的均值,最小值,最大值和标准差。我想可以使用group.reduce函数来完成。