• ticklecharts use case

    From pd@21:1/5 to All on Sun Mar 26 07:52:20 2023
    Hi,

    I was looking at ticklecharts for a while and I don't really understand the use case of this package.

    As far as I know , ticklecharts generates an html ready for using apache echarts javascript library, but what I don't see is what to do with the generated html file inside tcl

    I would expect generating a graph from tcl that is exported as image or popped up in a tk window, but how it's supposed to handle and html file? I must show the generated file invoking a html browser? I'm afraid I've missed the point.

    regards

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From pd@21:1/5 to All on Sun Mar 26 07:53:30 2023
    El domingo, 26 de marzo de 2023 a las 16:52:22 UTC+2, pd escribió:

    I was looking at ticklecharts for a while and I don't really understand the use case of this package.

    What I realize of course is the great work done, it's simply I cannot imagine a way to properly use it (my fault)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Werner@21:1/5 to All on Sun Mar 26 08:19:21 2023
    See Taygete Scrap Book on the Tcl'ers Wiki: https://wiki.tcl-lang.org/page/Taygete+Scrap+Book

    Could be somewhat of a use case.

    Enjoy
    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to [email protected] on Sun Mar 26 15:44:09 2023
    pd <[email protected]> wrote:
    Hi,

    I was looking at ticklecharts for a while and I don't really
    understand the use case of this package.

    As far as I know, ticklecharts generates an html ready for using
    apache echarts javascript library, but what I don't see is what to do
    with the generated html file inside tcl

    If this is what it generates, then the obvious usage is to link/embed
    this html chart into an html page (along with linking/embedding the
    supporting javascript library) on a webserver so that web clients can
    view the chart in the surrounding context of that web page.

    I.e., that it is for generating data for use in a website.

    I would expect generating a graph from tcl that is exported as image
    or popped up in a tk window, but how it's supposed to handle and html
    file? I must show the generated file invoking a html browser? I'm
    afraid I've missed the point.

    Maybe it is not intended to generate anything that can be viewed by Tk
    widgets?

    Just because it is a Tcl package does not necessarily mean its output
    is intended to be used by other Tcl things or output as an image file.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicolas Robert@21:1/5 to All on Tue Mar 28 12:00:30 2023
    Le dimanche 26 mars 2023 à 16:52:22 UTC+2, pd a écrit :
    Hi,

    I was looking at ticklecharts for a while and I don't really understand the use case of this package.

    Sorry ! It is that my package does not explain well, I will try to improve my README file...
    The goal of this package is to provide a means of creating common visualizations with a minimum of configuration and syntax.
    In 3, 4 lines you can generate a graph (I suppose all packages that generate a chart do it in a few lines but I’m happy to write this sentence... :))

    As far as I know , ticklecharts generates an html ready for using apache echarts javascript library

    You have summarized well what my package is supposed to do and Rich’s response explains the main feature.

    but what I don't see is what to do with the generated html file inside tcl.

    Inside Tcl, nothing at least I don't know about it.

    In your browser :
    Pray and hope for a miracle that the accountant’s numbers are good :)

    More seriously you can display it, save it (see : examples/bar/bar_animation_delay.html. In the top right corner you have an icon to save your image)
    Maybe with this image you can integrate it in other ways (pdf, e-mail...)
    Try Christian’s package (Taygete Scrap Book) is a way to visualize data quickly.

    I would expect generating a graph from tcl that is exported as image or popped up in a tk window, but how it's supposed to handle and html file? I must show the generated file invoking a html browser? I'm afraid I've missed the point.

    It is not intended to be used with Tk... Sorry
    If you want to display an image directly in Tk, you must do it on the server side to extract an image *.png, jpg, svg (for svg format fonts are not supported in tksvg package).
    Good news you can... Side client with Christian’s package (https://www.androwish.org/home/dir?name=undroid/twv) , selenium-tcl ( https://sourceforge.net/projects/selenium-tcl) can do it. (There may be other packages but I don’t know...)

    Voilà

    Nicolas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)