Forum Replies Created by nkfNovalume

Viewing 2 posts - 1 through 2 (of 2 total)
  • in reply to: axisX as datetime #22381

    This fixed my issue, thank you.

    i passed a string to time earlier in my php using
    $time = strtotime($row['Timestamp']);

    sending that directly to the graph in an array with the key “x” and ofc the value “y” and setting the data’s xValueType to dateTime has fixed the problem
    i now get the graph how it want it and can give it the data i feel like :)

    • This reply was modified 5 years, 8 months ago by nkfNovalume.
    in reply to: axisX as datetime #22372

    Changing the interval type isn’t working. the issue is that im having troubble getting the chart to accept a date property for the x-axis. the chart can take a date property from javascript Date(YYYY, MM, DD, HH, ii, SS) however it can’t take anything from php other than a number. it therefor puts my php dates on x-axis dates that arent correct because its trying to put them as if they were numbers (taking their position on the chart using their position in the array as the number) and therefor if i have two arrays with different length but they both start and end on same dates, it will make the shorter array apear shorter on the graph i.e. end it sooner than supposed.

    i can’t see any other fix for this than trying to obtain the data in javascript somehow and enter it there as javascript Date.

    • This reply was modified 5 years, 8 months ago by nkfNovalume.
    • This reply was modified 5 years, 8 months ago by nkfNovalume.
Viewing 2 posts - 1 through 2 (of 2 total)