Okay
  Public Ticket #2053038
wpDataCharts with single column ascending
Closed

Comments

  •  1
    Autostopowicz started the conversation

    Hello

    Is it possible to have a few wpDataCharts with single column each (not counting column with labels) on the same page, retriving data from the same wpDataTable, but with the data sorted ascending (or descending) for each of those wpDataCharts? I know that it is possible to sort the data by sorting it in that table. But I want the data to be sorted by default, other way round than it is sorted in the table. How to do that?

  •  2,572
    Aleksandar replied

    Hello Autostopowicz.

    While it is possible to create multiple charts from a single table, I don't believe you'll be able to have those charts sorted opposite of the table's sorting.

    That is default behavior of charts engine, but if you need some custom solution you can check in our documentation about wpDataCharts callbacks

    • Every chart exposes several options that customize its look and feel. Charts usually support custom options appropriate to that visualization. wpDataChart callbacks allow adding options that are available in Google Charts APIHighcharts API and Chart.js API
    • All necessary resources are available in charts engines API (depends on which one you use). Every engine has a different approach to chart settings. In wpDataChart callbacks you have to adopt those settings to the wpDataChart object (you can take a look at examples for each engine in our documentation, and also in Support help center). Huge number of examples for any area of programming can be found on stackoverflow.com (typing your problem in google and at the end add "site: stackoverflow.com" and google will search only that website). Also, a lot of examples of charts, chart settings and customization can be found on jsffidle.net (typing in google for example "line chart highcharts jsffidle")
    • Please note that using hooks or wpdatatable and wpDataChart callbacks requires certain level of programming skills and included support refers only to advice.

    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