Okay
  Public Ticket #2924265
How to show only charts after the filtration and not the table?
Closed

Comments

  •  1
    Blagoj started the conversation

    Hello,

    First thank you for this plugin. It is really awesome, and my client really loved it. However, they want when a user chooses the advanced filters, afterwards to show only the charts and not the table. See this page where I have created the filters: https://tiviusanalytica.com/podatoci-komparacija-po-godini/

    Is this possible?

    Thanks,
    Blagoj

  • [deleted] replied

    Hi Blagoj

    Thank you for reaching out to us.

    If you need to hide the filters, a simple css like this would be enough:

    .wpdt-c .wpDataTables.wpDataTablesWrapper {
    display: none !important;
    }
    

    But if you need to show the filters, you would first need to disable the following in table settings:

    "Show X entries" drop-down; "Info Block" from Display tab:

    2852344743.png

    "Enable main search block" from Sorting and Filtering tab:

    3844294247.png

    And "Table Tools" from Table Tools tab:

    6988162559.png

    Then, you can hide the table, leaving the filters above the chart like this:

    <style>
    .wpdt-c .wpDataTablesWrapper table {
    display: none !important;
    }
    </style>
    [wpdatatable id=1]
    [wpdatachart id=1]
    

    And that's it. This is how you'd create a page where you'd have Chart #1 dependent on wpDataTable #1 so it follows filtering, and the table hidden using CSS.

    The screenshots are from an older version of wpDataTables, but they still apply.

  •  1
    Blagoj replied

    Hello Blazenka,

    Thank you very much, the solution works perfectly! 

    I have one more question. Is it possible not to show the chart results until the first 3 filters are selected?

    https://tiviusanalytica.com/podatoci-komparacija-po-godini/

    Because now, when I choose the first filter, it gives some aggregate results, that can misinform and confuse the people that will read these results. 

    It needs for you to choose the first 3 filters, and only then to show the chart results. Is that somehow possible to be done?

    Thanks,

    Blagoj

  • [deleted] replied

    Hi Blagoj

    You are most welcome, I am glad to hear thatsmile.png

    Unfortunately this cannot be achieved using the plugin's builtin features.

    I'll kindly ask you to add it as a feature suggestion on this page. 

    Features are pushed up on our "to-do" list when there are a lot of customers requesting those features, so having your vote as a customer can be beneficial to this feature being developed sooner.

    It probably can be done with some custom work, but our developers are very busy at the moment, working on some priority tasks and fixing bugs and issues with our plugins, so they won't be having the time for custom work in near future.

    But we can recommend these services for customization:

    https://codeable.io/?ref=l1TW1

    https://wpkraken.io/?tms-plugins

    They do develop such solutions, so can you please send your inquiry to them?


  •  1
    Blagoj replied

    ok I understand, thank you!

  • [deleted] replied

    You are most welcomesmile.png

    If there is anything else we can assist you with please don't hesitate to open a new ticket.

    Have a wonderful day!