Home forums Using CanvasJS Java GUI program with chart

This topic contains 9 replies, has 3 voices, and was last updated by  Relationman 2 months, 2 weeks ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #22355

    Relationman
    Member

    Please I need help. How can I produce a chart in Java whose input data are from text field. That is; each time I change the values in the input text field, in produces a new chart

    #22358

    Vishwas R
    Keymaster

    @relationman,

    Please take a look at this tutorial on rendering chart with dataPoints from user input.

    Also refer our gallery section for example on JSP and Spring MVC. You can also download working samples from our download page and try running it locally.


    Vishwas R
    Team CanvasJS

    #22360

    Relationman
    Member

    Thanks alot for the response but it still doesn’t solve exactly what I need.

    #22361

    Vishwas R
    Keymaster

    @relationman,

    Just like adding new dataPoints to the chart as shown in the tutorial, you can dynamically create chart as well. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    #22363

    Relationman
    Member

    Ok. Now I see. . Thanks.
    This brings me to asking for solution of the main problem.
    I wrote a GUI program which receives input data using editable text fields and produces results through some other non editable text field. I want to produce a chart from another window each time I click a button. I want the plot to use data from the input and output variable produced in the GUI program . Please help me. Thanks.

    #22378

    Vishwas R
    Keymaster

    @relationman,

    Can you kindly share sample project reproducing the issue you are facing over Google-Drive or Onedrive so that we can look at your code, understand the scenario better and help you out?


    Vishwas R
    Team CanvasJS

    #22384

    Relationman
    Member

    https://drive.google.com/folderview?id=1fuJjFiOPfZrExzFQOeG-1-HU-xrVw1_T

    The link above is a location where the source code of my program is. There are three files there. One is the mother program while the other is for the plot. The mother/main work program calls the plot program to produce a chart. the third file is a picture of how the program runs.
    The button named “Vogel” is used for the computation.
    What I want is that after the computation is done and the results is displayed on the screen, and then If I click on the plot button. It should produce a plot that changes with changing input and output data.
    The problem I have is that the plot/chart that my program produces does not change automatically if I vary my input parameters (pwf).
    Please help me so that the two program can communicate very well in order that every different input and output data (Qo) can produce a dynamic chat.
    Thank you very much.

    #22396

    Relationman
    Member

    Hello sir. I’m yet to hear from you. Please reply let me know if you have received my message and the source code for the program.
    Thanks.

    #22397

    sandeephegde
    Moderator

    @relationman,
    It looks like you are not using CanvasJS in your project. We can help you with questions related to CanvasJS and its implementation.

    You can get started with CanvasJS by following the documentation at https://canvasjs.com/docs/charts/basics-of-creating-html5-chart/

    #22398

    Relationman
    Member

    My project is written on Java.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.