Okay
  Public Ticket #1954382
Date X-Axis in HighCharts and Chart.JS
Closed

Comments

  •  2
    A3igner started the conversation

    When you plot a value versus a Date Column then 

    GoogleCharts is the only one that plots the X-Axis correctly with the date in ascending order from left to right. 

    HighCharts and Chart.JS plot the Time Axis in Descending order. Ie. NON-conventional. 

    See screenshot  22/3/2019 starting on left instead of being last entry on right.

    And this doesnt change if i make the table automatically sort by Date column descending or ascending, that makes no difference. 


    BUG?

  •  2,572
    Aleksandar replied

    Hello A3igner.

    I created a manual table just for testing and entered data in random order, like this:

    4684779768.png

    So, since I wanted to make the chart follow table filtering, I enabled that option when I created the chart:

    7380299715.png

    Then, in order for the chart to actually do that, I had to place both the chart and the table on the same page. It displayed the way I expected it to - by entry (see attachment "Selection_388").

    Then, I changed the date column's settings to sort by default, and in Ascending manner:

    2037050957.png

    So, after doing that, the chart responded accordingly (see attachment "Selection_390).

    I believe that's what you're trying to achieve, correct?

    The thing with "Follow table filtering" is that the chart and the table have to be on the same page.

    Please let me know if this helps.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables