• Resolved sputtering

    (@sputtering)


    I have found a TablePress add-on called Chartist. I believe it only uses
    shortcodes with a list of args.

    How do I tell it to plot $col_a and $col_b?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    To be honest, I don’t know ?? As this Extension has been developed by another developer and not by me, I simply don’t know everything about it. From what I remember, by default it plots the rows.

    Regards,
    Tobias

    Thread Starter sputtering

    (@sputtering)

    If there is one thing I noticed about this TablePress add-on:
    The documentation is very sparse; AAAAND there is another piece of software
    with the same name.

    Incorporate this stuff into TablePress; ORRRR add graphing functionality??

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, the documentation doesn’t seem to be the best, but as I said above, I’m not the developer of that Extension and don’t have the power to extend or update it. I’m really sorry.
    I also don’t have plans to integrate graphing directly into TablePress, as that would be beyond the intended scope of the plugin, in my opinion.

    Regards,
    Tobias

    Thread Starter sputtering

    (@sputtering)

    OK. Ideas then?
    Is there another way to read this data from the table and plot it?

    Thread Starter sputtering

    (@sputtering)

    DOH!
    Just a thought: Is there a nice way to cut the data in cols $a and $b
    and drop them into WP QuickLatex and have Latex-TikZ do the work?
    I can compile Latex-TikZ/PGF to PNG and embed the resulting PNG in my
    page…

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    unfortunately, I have no experience with these LaTeX solutions, sorry.
    Your best chance probably is a graphing solution based on JavaScript where you use that JS to loop through the table cells on the frontend.

    Regards,
    Tobias

    Thread Starter sputtering

    (@sputtering)

    You did not answer the Q:
    Is there a nice way to grab col $a and col $b
    and drop them into an other window?

    I have the WP QuickLatex code that works; I just need to get at the data
    and hack that block of code up.

    Thread Starter sputtering

    (@sputtering)

    Possible solution to graphing problem…
    An extract option. Extract $col_a and display it here; then extract $col_b
    and set it here.
    Each time I can then take the data and drop it in my code (or program/app)
    and have it plotted and/or compiled to PNG format.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    for single cells, you could take a look at https://tablepress.org/extensions/table-cell-shortcode/

    Alternatively, you’ll have to use PHP code, and directly use the TablePress functions that load a table, like

    $table = TablePress::$model_table->load( $table_id );
    

    defined at https://github.com/TobiasBg/TablePress/blob/master/models/model-table.php#L306

    Regards,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Graphing Data in the Table’ is closed to new replies.