Witajcie, mam taki kod wykresów HighCharts:
  1. Highcharts.chart('container', {
  2. chart: {
  3. type: 'area'
  4. },
  5. title: {
  6. text: ''
  7. },
  8. xAxis: {
  9. allowDecimals: false,
  10. labels: {
  11. formatter: function () {
  12. return 0,3,6,9,12,15,18,21
  13. }
  14. }
  15. },
  16. yAxis: {
  17. title: {
  18. text: 'Temperatura (°C)'
  19. },
  20. labels: {
  21. formatter: function () {
  22. return this.value / 1;
  23. }
  24. }
  25. },
  26. tooltip: {
  27. pointFormat: 'Temperatura <b>{point.y:,.0f}°</b>'
  28. },
  29. plotOptions: {
  30. area: {
  31. pointStart: 0,
  32. marker: {
  33. enabled: false,
  34. symbol: 'circle',
  35. radius: 2,
  36. states: {
  37. hover: {
  38. enabled: true
  39. }
  40. }
  41. }
  42. }
  43. },
  44. series: [{
  45. name: 'Temperatura (°C)',
  46. data: [-1, 2, 0, 1]
  47. }]
  48. });

jak zmienić aby w tabeli X pojawiały się wartości 00:00, 03:00, 06:00 i tak dalej aż do 21:00? Próbuje różnymi sposobami i nie wiem już jak to zrobić...