Я использую Kendo UI Chart для создания графиков, и в этом случае я хочу создать ось X в текстовом формате с форматом MES / YEAR и серией по имени пользователя.
Проблема в том, что хотяданные X правильно записаны так, что в текстовом формате они упорядочены (01, 02, 03 ...). Кендо-чарт не упорядочивает их.
Я думаю, что проблема в том, что в дни, когда данные неотсортировано, есть не все серии.День 2 имеет все данные, день 3 также, но день 8 имеет только 1 значение серии.
За исключением решения для заполнения недостающих данных (что не может быть сделано), вы придумали какие-либоРешение или конфигурация Kendo для отображения оси X в том виде, в каком она должна быть?
Заранее спасибо.
Это пример данных за 10 дней.
<code>
array:186 [
0 => {#310
+"X": "02/january"
+"Serie": "María"
+"year": 2019
+"month": 1
+"day": 2
+"Value": "1386.6275"
}
1 => {#309
+"X": "02/january"
+"Serie": "Juan"
+"year": 2019
+"month": 1
+"day": 2
+"Value": "1293.7631"
}
2 => {#308
+"X": "02/january"
+"Serie": "Pedro"
+"year": 2019
+"month": 1
+"day": 2
+"Value": "1476.3268"
}
3 => {#307
+"X": "02/january"
+"Serie": "Julián"
+"year": 2019
+"month": 1
+"day": 2
+"Value": "1396.5181"
}
4 => {#296
+"X": "02/january"
+"Serie": "Miguel"
+"year": 2019
+"month": 1
+"day": 2
+"Value": "1845.9368"
}
5 => {#300
+"X": "02/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 2
+"Value": "1560.9640"
}
6 => {#305
+"X": "02/january"
+"Serie": "Felipe"
+"year": 2019
+"month": 1
+"day": 2
+"Value": "907.2997"
}
7 => {#304
+"X": "03/january"
+"Serie": "Miguel"
+"year": 2019
+"month": 1
+"day": 3
+"Value": "1074.9181"
}
8 => {#303
+"X": "03/january"
+"Serie": "Julián"
+"year": 2019
+"month": 1
+"day": 3
+"Value": "1064.1639"
}
9 => {#302
+"X": "03/january"
+"Serie": "Juan"
+"year": 2019
+"month": 1
+"day": 3
+"Value": "1629.7992"
}
10 => {#301
+"X": "03/january"
+"Serie": "Pedro"
+"year": 2019
+"month": 1
+"day": 3
+"Value": "1161.4731"
}
11 => {#297
+"X": "03/january"
+"Serie": "María"
+"year": 2019
+"month": 1
+"day": 3
+"Value": "1298.8367"
}
12 => {#312
+"X": "03/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 3
+"Value": "968.4637"
}
13 => {#313
+"X": "03/january"
+"Serie": "Felipe"
+"year": 2019
+"month": 1
+"day": 3
+"Value": "1702.7284"
}
14 => {#314
+"X": "04/january"
+"Serie": "Pedro"
+"year": 2019
+"month": 1
+"day": 4
+"Value": "1143.0819"
}
15 => {#315
+"X": "04/january"
+"Serie": "María"
+"year": 2019
+"month": 1
+"day": 4
+"Value": "1043.3093"
}
16 => {#316
+"X": "04/january"
+"Serie": "Miguel"
+"year": 2019
+"month": 1
+"day": 4
+"Value": "1513.2909"
}
17 => {#317
+"X": "04/january"
+"Serie": "Felipe"
+"year": 2019
+"month": 1
+"day": 4
+"Value": "1103.3999"
}
18 => {#318
+"X": "04/january"
+"Serie": "Juan"
+"year": 2019
+"month": 1
+"day": 4
+"Value": "1328.9183"
}
19 => {#319
+"X": "04/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 4
+"Value": "1311.5917"
}
20 => {#320
+"X": "04/january"
+"Serie": "Julián"
+"year": 2019
+"month": 1
+"day": 4
+"Value": "1186.6645"
}
21 => {#321
+"X": "05/january"
+"Serie": "Pedro"
+"year": 2019
+"month": 1
+"day": 5
+"Value": "1071.6091"
}
22 => {#322
+"X": "05/january"
+"Serie": "Julián"
+"year": 2019
+"month": 1
+"day": 5
+"Value": "1088.5268"
}
23 => {#323
+"X": "05/january"
+"Serie": "Juan"
+"year": 2019
+"month": 1
+"day": 5
+"Value": "1244.2901"
}
24 => {#324
+"X": "05/january"
+"Serie": "María"
+"year": 2019
+"month": 1
+"day": 5
+"Value": "1353.2544"
}
25 => {#325
+"X": "05/january"
+"Serie": "Miguel"
+"year": 2019
+"month": 1
+"day": 5
+"Value": "829.0722"
}
26 => {#326
+"X": "05/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 5
+"Value": "1029.0823"
}
27 => {#327
+"X": "05/january"
+"Serie": "Felipe"
+"year": 2019
+"month": 1
+"day": 5
+"Value": "940.9094"
}
28 => {#328
+"X": "06/january"
+"Serie": "Julián"
+"year": 2019
+"month": 1
+"day": 6
+"Value": "1630.4453"
}
29 => {#329
+"X": "06/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 6
+"Value": "1243.5276"
}
30 => {#330
+"X": "06/january"
+"Serie": "Pedro"
+"year": 2019
+"month": 1
+"day": 6
+"Value": "1578.9820"
}
31 => {#331
+"X": "06/january"
+"Serie": "María"
+"year": 2019
+"month": 1
+"day": 6
+"Value": "1435.7552"
}
32 => {#332
+"X": "06/january"
+"Serie": "Juan"
+"year": 2019
+"month": 1
+"day": 6
+"Value": "1554.5911"
}
33 => {#333
+"X": "06/january"
+"Serie": "Miguel"
+"year": 2019
+"month": 1
+"day": 6
+"Value": "1257.1369"
}
34 => {#334
+"X": "06/january"
+"Serie": "Felipe"
+"year": 2019
+"month": 1
+"day": 6
+"Value": "2260.8539"
}
35 => {#335
+"X": "07/january"
+"Serie": "Felipe"
+"year": 2019
+"month": 1
+"day": 7
+"Value": "2345.0908"
}
36 => {#336
+"X": "07/january"
+"Serie": "María"
+"year": 2019
+"month": 1
+"day": 7
+"Value": "1629.8358"
}
37 => {#337
+"X": "07/january"
+"Serie": "Julián"
+"year": 2019
+"month": 1
+"day": 7
+"Value": "2121.2279"
}
38 => {#338
+"X": "07/january"
+"Serie": "Miguel"
+"year": 2019
+"month": 1
+"day": 7
+"Value": "2612.3270"
}
39 => {#339
+"X": "07/january"
+"Serie": "Pedro"
+"year": 2019
+"month": 1
+"day": 7
+"Value": "2127.5189"
}
40 => {#340
+"X": "07/january"
+"Serie": "Juan"
+"year": 2019
+"month": 1
+"day": 7
+"Value": "1836.9815"
}
41 => {#341
+"X": "07/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 7
+"Value": "2246.9452"
}
42 => {#342
+"X": "08/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 8
+"Value": "51.0909"
}
43 => {#343
+"X": "09/january"
+"Serie": "Miguel"
+"year": 2019
+"month": 1
+"day": 9
+"Value": "906.5995"
}
44 => {#344
+"X": "09/january"
+"Serie": "María"
+"year": 2019
+"month": 1
+"day": 9
+"Value": "1184.5727"
}
45 => {#345
+"X": "09/january"
+"Serie": "Juan"
+"year": 2019
+"month": 1
+"day": 9
+"Value": "1075.0636"
}
46 => {#346
+"X": "09/january"
+"Serie": "Felipe"
+"year": 2019
+"month": 1
+"day": 9
+"Value": "1873.2914"
}
47 => {#347
+"X": "09/january"
+"Serie": "Julián"
+"year": 2019
+"month": 1
+"day": 9
+"Value": "1213.4539"
}
48 => {#348
+"X": "09/january"
+"Serie": "Pedro"
+"year": 2019
+"month": 1
+"day": 9
+"Value": "1633.5181"
}
49 => {#349
+"X": "09/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 9
+"Value": "1402.7728"
}
50 => {#350
+"X": "10/january"
+"Serie": "Juan"
+"year": 2019
+"month": 1
+"day": 10
+"Value": "1101.3358"
}
51 => {#351
+"X": "10/january"
+"Serie": "Julián"
+"year": 2019
+"month": 1
+"day": 10
+"Value": "1575.2270"
}
52 => {#352
+"X": "10/january"
+"Serie": "Admin"
+"year": 2019
+"month": 1
+"day": 10
+"Value": "1611.5281"
}
53 => {#353
+"X": "10/january"
+"Serie": "Pedro"
+"year": 2019
+"month": 1
+"day": 10
+"Value": "1193.2554"
}
54 => {#354
+"X": "10/january"
+"Serie": "Miguel"
+"year": 2019
+"month": 1
+"day": 10
+"Value": "1431.3446"
}
55 => {#355
+"X": "10/january"
+"Serie": "María"
+"year": 2019
+"month": 1
+"day": 10
+"Value": "1037.7814"
}
56 => {#356
+"X": "10/january"
+"Serie": "Felipe"
+"year": 2019
+"month": 1
+"day": 10
+"Value": "1537.6908"
}
</code>
..Вырезать 10 января, почему ошибка относится к 8-му дню, 42 позиции массива, когда имеется только 1 серия данных
Результат диаграммы в файле JPG
Захватить диаграмму