WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Graphing (50 posts)

  1. bruceleeon
    Member
    Posted 1 year ago #

    I would love for you to extend this plugins capabilities by adding charting, or the ability to represent numbers in the chart as a charted images. Example:

    http://computingondemand.com/images/Untitled.png

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post. That's indeed an interesting suggestion, and I've already been thinking about something like this.
    Unfortunately, I don't see nice ways to implement this right now, so I'm not sure how I could add this :-(

    Regards,
    Tobias

  3. WillBrody
    Member
    Posted 1 year ago #

    Do you think the new Plug-In Table2Chart would work with your tables?

    http://wordpress.org/extend/plugins/table2chart

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for that link. I don't know that plugin yet, but will take a look. Depending on what data sources the plugin supports, using a TablePress table for that could indeed be possible. It looks like you'll need a license for the actual JavaScript code though.

    Regards,
    Tobias

  5. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I just took a quick look at the description of the Table2Chart plugin. From what I understand, it just takes the data from a table on the page. So, using that with a table that was created by TablePress should not be a problem.

    Regards,
    Tobias

  6. bruceleeon
    Member
    Posted 1 year ago #

    Going to check it out now...

  7. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    note that charts as in your example don't seem to be possible with that plugin, as charts can only be positioned outside of tables. Additionally, don't forget that you seem to need a license to use the JavaScript code for that plugin (which is free for non-commercial use though, from what I can see).

    Regards,
    Tobias

  8. bruceleeon
    Member
    Posted 1 year ago #

    Its a decent start, but it doesn't seem to recognize decimal points. instead of 98.67 it shows as 9,867

  9. bruceleeon
    Member
    Posted 1 year ago #

  10. bruceleeon
    Member
    Posted 1 year ago #

    Got it.. .had to add convert="false" to the shortcode

  11. bruceleeon
    Member
    Posted 1 year ago #

    I think I like it!

  12. bruceleeon
    Member
    Posted 1 year ago #

    I did have to add a column to the table though that concatenates columns 1 & 2. It can't be hidden either.

  13. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    very nice! Looks good indeed! I assume that the "Description" column is the extra column that you had to add.
    While you can't hide that via the "Edit" screen of TablePress (otherwise the information wouldn't be available to Table2Chart), you can hide that via JavaScript.
    Please try adding

    "aoColumnDefs": [ { "bVisible": false, "aTargets": [ 4 ] } ]

    to the "Custom Commands" textfield on the "Edit" screen of the table.
    The 4 indicates that the 5th column shall be hidden (counting starts with 0 in that code).

    Regards,
    Tobias

  14. bruceleeon
    Member
    Posted 1 year ago #

    Seems like if it is rendered on the page, the chart doesn't work. Is there a way to make the column width for that column 0?

  15. bruceleeon
    Member
    Posted 1 year ago #

    *isn't rendered

  16. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Bummer. No, reducing the width to 0 is not possible, but there's another way to hide the column, that could work:
    Please add this to the "Custom CSS" textarea on the "Plugin Options" screen:

    .tablepress-id-1 .column-5 {
        display: none;
    }

    Regards,
    Tobias

  17. bruceleeon
    Member
    Posted 1 year ago #

    Won't that hide column 5 in all tables though?

  18. bruceleeon
    Member
    Posted 1 year ago #

    WAIT!! TABLEPRESS-ID-1... will try

    read too quickly

  19. bruceleeon
    Member
    Posted 1 year ago #

    Worked well!

  20. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    awesome! That's great to hear! :-)

    Best wishes,
    Tobias

    P.S.: In case you haven't, please rate TablePress here in the plugin directory. Thanks!

  21. bruceleeon
    Member
    Posted 1 year ago #

    Sorry I couldn't donate more... I appreciate your help and your work! Great Job!!!

  22. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thank you for the donation! That's very nice, and I really appreciate it!

    Best wishes to you and your project!
    Tobias

  23. bruceleeon
    Member
    Posted 1 year ago #

    These two combined are going to save me from generating graphs in Excel, saving them as images and inserting them as images on a product review. This is KILLER WORK!!!

    Example: http://computingondemand.com/NAS-detail/asustor-as-608t/4/

  24. bruceleeon
    Member
    Posted 1 year ago #

    Is there a way to hide the search and show functions through shortcode?

    Look here to see why: http://computingondemand.com/NAS-detail/asustor-as-608t/6/

  25. bruceleeon
    Member
    Posted 1 year ago #

    I am using:

    [table id=3 hide_rows=all show_rows=1,14 hide_columns=1,2,3,4,6,7,8,9,10,11,12,15,16,17 /]

    [Table2Chart type="bar" namecol="1" convert="false" width="400" height="300" color="#c6d9f1,#4f81bd"]

    [table id=3 hide_rows=all show_rows=1,14 hide_columns=1,2,3,4,9,10,11,12,13,14,15,16,17 /]

    [Table2Chart table="2" type="bar" namecol="1" convert="false" width="400" height="300"]

    [table id=3 hide_rows=all show_rows=1,14 hide_columns=1,2,3,4,6,7,8,11,12,13,14,15,16,17 /]

    [Table2Chart table="3" type="bar" namecol="1" convert="false" width="400" height="300" color="#c6d9f1,#4f81bd"]

    [table id=3 hide_rows=all show_rows=1,14 hide_columns=1,2,3,4,6,7,8,9,10,13,14,15,16,17 /]

    [Table2Chart table="4" type="bar" namecol="1" convert="false" width="400" height="300" color="#c6d9f1,#4f81bd"]

    [table id=3 hide_rows=all show_rows=1,14 hide_columns=1,2,3,4,6,7,8,9,10,11,12,13,14 /]

    [Table2Chart table="5" type="bar" namecol="1" convert="false" width="400" height="300"]

    in the posts

  26. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    great to see that this will be so useful for you :-)

    And yes, you can turn off those extra JS functions via the Shortcode, by adding the parameter use_datatables=false, as in

    [table id=3 hide_rows=all show_rows=1,14 hide_columns=1,2,3,4,6,7,8,9,10,11,12,15,16,17 use_datatables=false /]

    Additionally, you can make that Shortcode a little bit more readable and shorter by using ranges in the hide_columns parameter:

    [table id=3 hide_rows=all show_rows=1,14 hide_columns=1-4,6-12,15-17 use_datatables=false /]

    Also, for the table on http://computingondemand.com/test-bench/nas-benchmarking-database/2/, you can simply turn off the pagination entirely, instead of setting the shown number of rows: Just uncheck the "Pagination" checkbox.

    Regards,
    Tobias

  27. rinaldi6109
    Member
    Posted 1 year ago #

    Please advice. The new released (March 22) HighCharts library has a bug which prevents [table2chart] to work anymore. While waiting for a patch, I have prepared a new version of my plugin which can use a local or cached (CloudFlare hosted) version of such library to escape any other future problem. I have already uploaded it to wordpress repository but if it is not signaled (at the moment it is so) you can download it from http://plugins.svn.wordpress.org/table2chart/tags/0.2c/. Thanks for your patience.

  28. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for the update! Let's hope that this bug is then fixed soon in HighCharts.

    Regards,
    Tobias

  29. bruceleeon
    Member
    Posted 1 year ago #

    All charts are broken! Even with the update...

  30. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I'm sorry to hear that :-( Unfortunately, there's nothing that I can do about this in TablePress (and nothing changed obviously, since the last time). I therefore recommend that you two work on this together in a new thread in the forums of Table2Chart, at http://wordpress.org/support/plugin/table2chart

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.